Skip to content

Instantly share code, notes, and snippets.

View brussell98's full-sized avatar

Brandon Russell brussell98

View GitHub Profile
@brussell98
brussell98 / reddit-old-layout.js
Created November 18, 2021 16:20
Redirects to old.reddit.com when private browsing
// ==UserScript==
// @name Reddit Old Layout
// @namespace 9bf36c681d35d52913b3bda74ddf6127318ed7b0
// @version 0.3
// @description Forces usage of the old reddit version
// @author Brussell
// @match https://www.reddit.com/*
// @match https://reddit.com/*
// @grant none
// @run-at document-start
@brussell98
brussell98 / CHANGELOG.md
Last active January 9, 2021 07:21
Bots on Discord 2.12 Changelog

2.12.0

Features

  • Added the ability for Helpers to recommend a bot for approval, with a note
  • Made Commands public
    • Added API documentation section
    • Added about page section
  • Added an admin permission warning to bot pages
@brussell98
brussell98 / reqs.diff
Created January 9, 2021 06:01
2021 Bot Requirements Changes
<h3>Listing Rules</h3>
<ol>
<li>You must not present false information. For example: claiming to have features you do not, faking endorsements, or faking statistics.</li>
- <li>Your bot's description must be descriptive. It must accurately describe your bot in a short paragraph.
+ <li>Your bot's description must be <em>descriptive</em>. It must briefly describe what your bot is and what it does.
<ol>
+ <li>Descriptions must be written with sentences and no additional formatting. Things like vertical lists and pipe characters (|) should not be included.</li>
<li>Don't just type out a list of your commands by name. Quickly describe what your bot does in a way everyone can understand.</li>
</ol>
</li>
@brussell98
brussell98 / whatthefuck.js
Created January 5, 2021 00:52
Can you find out what it does?
_ = global;a = '▌╣'.slice(+!![] - [] << 2);b = [...'the quick brown fox jumps over the lazy dog'];c = c => String.fromCharCode(c.charCodeAt([] - []) - 98);d = s => [...s].map(c).join([] + []);e = !![] + !![] + !![];f = (!![] - [] + e << !![]) + !![];g = !![] << !![];h = !![] + !![] + [];i = (f - !![]) * g + [];j = b[+i - f - h] + b[-[]] + b[+i];ja = j[g] + b[+((+!![] + []) + +!![] + [])] + b[f + e] + b[+(h + h)];k = ['±ÄÌÇÅÖ', '£ÔÔÃÛ', 'µÖÔËÐÉ', 'ÒÔÑÅÇÕÕ', '§ÔÔÑÔ', '¤×ÈÈÇÔ'].map(d);l = '档牡潃敤瑁';m = [] + new _[k[(!![] - [] << !![] + !![]) + !![]]][ja](l, b[e + g] + b[e + g * g] + (typeof i)[[] - []] + h) + [];n = b[+i + f - !![]] + b[+i + f - g] + b[i * g + e] + b[e * g] + b[[] - []];o = _[k[![] - []]].getOwnPropertyNames(_[k[!![] + !!{}]])[f - (e << !![])];p = _[k[![] - []]].getOwnPropertyNames(_[k[!![] - !{}]].prototype)[+(h + h)];q = _[k[![] - []]].getOwnPropertyNames(_[k[!![] - !{}]].prototype)[i - !![]];r = b[i - g - e] + b[g] + b[i * e + [] - [] - g * (e + !![])] + b[g + e] + b[f - g] + b[g];s = (ac, v) =
@brussell98
brussell98 / CHANGELOG.md
Created November 16, 2020 03:39
Bots on Discord 2.11 Changelog

2.11.0

Features

  • Added a role for new staff: Helper
    • This role can only deny bots
  • Added configuration option to disable submission of new bots
  • Added bot commands

Improvements

@brussell98
brussell98 / CHANGELOG.md
Last active February 25, 2020 02:44
Bots on Discord 2.9 Changes

2.9.0 - Reviews Update 2

Adds more features to reviews, reworks the dates for bots to various advantages, and more.

Features

  • Reworked dates for bots. They now have dates for firstSubmitted, lastSubmitted, firstApproved, and lastUpdated
    • This info is displayed on bot pages and the approval queue
    • Changed the approval queue to sort by the first submission date, not the last submission date
    • The date for "New bots" is now the first approved date. Resubmissions and long review times will not have negative effects anymore
@brussell98
brussell98 / CHANGELOG.md
Created December 24, 2019 22:15
Bots on Discord 2.8 Changelog

2.8.0 - Reviews Update

Adds the much anticipated reviews feature to Bots on Discord.

Features

  • Added reviews, replacing the voting system
    • Removed references to votes, replacing them with reviews where applicable
    • Added a profanity filter to be used for reviews
    • Updated embeds to use reviews instead of votes
@brussell98
brussell98 / CHANGELOG.md
Created October 5, 2019 05:10
BoD 2.7 Changelog

2.7.0 - September Update

This update adds public user pages and placeholder bots, along with many other changes.

Features

  • Added public user pages
    • Removed /me page and redirect to the user page
    • Updated MyBotCard to UserBotCard so it works when the viewer is not the owner
    • Updated the owner on bot pages to link to their user page
@brussell98
brussell98 / CHANGELOG.md
Created August 22, 2019 03:05
BoD 2.6 Changelog

2.6.0 - Search Update

This update replaces the old search with Elasticsearch, bringing many improvements. It also adds more markdown features, adding bots to lists from their page, tips, and more.

Feature

  • New search engine using Elasticsearch
    • Create markdown.js for parsing markdown outside of Vue
    • Improved the pagination component so it's much easier to use
    • Added ability to sort search results by relevance
newline: a.default.defaultRules.newline,
paragraph: a.default.defaultRules.paragraph,
escape: a.default.defaultRules.escape,
blockQuote: E({}, a.default.defaultRules.blockQuote, {
match: function(e, t, n, r) {
return !T.test(r) || t.inQuote ? null : v.exec(e)
},
parse: function(e, t, n) {
var r = e[0],
i = Boolean(y.exec(r)),