-
Declare
var MutationObserver
in the global scope (i.e. outside of a function) in the plugin -
Observe that
window.MutationObserver
isundefined
.
(In RES v4.1.5, this manifests asMutationObserver == undefined || null == null
) -
Remove
var MutationObserver
from the global scope code. -
Observe that
window.MutationObserver
is a constructor function, is truthy, and logs asnull
unless you cast it a little.
(After fixing this in RES, this manifests asMutationObserver
== the constructor)
🧜♀️
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
filterTitle: function(title, reddit) { | |
var reddit = (reddit) ? reddit.toLowerCase() : null; | |
return this.arrayContainsSubstring(this.options.keywords.value, title.toLowerCase(), reddit); | |
}, | |
filterDomain: function(domain, reddit) { | |
var reddit = (reddit) ? reddit.toLowerCase() : null; | |
var domain = (domain) ? domain.toLowerCase() : null; | |
return this.arrayContainsSubstring(this.options.domains.value, domain, reddit); | |
}, | |
filterSubreddit: function(subreddit) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function.prototype.aggregate = function(initial, array) { | |
var callback = this; | |
var val = initial; | |
for (var i = 0; i < array.length; i++) { | |
val = callback(val, array[i], key); | |
} | |
return val; | |
} | |
A Pen by A Non Ymous on CodePen.
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
[ | |
"subRedditTagger", | |
"http://www.reddit.com", | |
true | |
], | |
[ | |
"subRedditTagger", | |
"http://www.reddit.com?sort=new", | |
true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
url+body: "reddit.com/r/[^/]+?/comments/" | |
url+body+body: "/r/pcmasterrace" | |
modifiers: | |
url+body: [includes, regex] | |
url+body+body: inverse | |
comment: | | |
To who posted - Content removed. We are currently not allowing direct links to comments in other subreddits to avoid brigading. It protects our users from shadowbans, which are fairly common among voters who follow through links from other subreddits. |
I [gavin19] also wrote this very simple Python script that can take a Chrome chrome-extension_kbm..localstorage file as input and output to the Firefox store.json type. Just copy the old Chrome settings file to the same directory as the script and rename to res.db. Running python chrToFF.py should output a valid Firefox-worthy replica.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<patcon> honestbleeps: sorry for unceremoniously janking out of there yesterday, but again, thanks so much for the help with babelext | |
<patcon> and as for your having gittip's and being totally unaware, yeah, there's an issue for that, whicH i just added you as a +1 to: https://github.com/gittip/www.gittip.com/issues/447 | |
<patcon> :) | |
<andytuba> haha nice patcon https://github.com/gittip/humans | |
<SirCmpwn> one of the gittip guys got in touch and convinced us to add gittip donations to mediacrush | |
<andytuba> although you'd barely know it from looking at your donate page | |
<patcon> andytuba: heh i'd stumbled across that early on, but forgot. i should ask chad about it? | |
<patcon> oops. ignore that "?" | |
<andytuba> github.com/gittip/humans/issues/new : In-joke unclear, please add clarifying commit message =p | |
<SirCmpwn> andytuba: at some point we'll make that better, we just aren't trying very hard :P |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
subreddit_background_colors = { | |
"amateurradio": "rgb(216,249,226)", | |
"ANGEL": "rgb(227,245,252)", | |
"announcements": "rgb(231,237,213)", | |
"AskHistorians": "rgb(206,239,222)", | |
"Astronomy": "rgb(248,228,236)", | |
"bestof": "rgb(229,222,215)", | |
"blog": "rgb(254,248,241)", | |
"books": "rgb(221,214,223)", | |
"buffy": "rgb(247,208,237)", |
OlderNewer