Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const contentModXHR = Class({
- implements: [privacyMode, contentMod],
- initialize(file, value = true, ...args){
- this.file = `${value}file.js`;
- this.value = value;
- this.include = this.makeURIRules("*.wykop.pl");
- this.include = this.makeURIRules("http://www.wykop.pl/ramka/*");
- },
- makeURIRules: rules => Array.isArray(rules) ? rules.map(rule => new MatchPattern(rule)) : new MatchPattern(rules),
- matchURI(window) (!this.include || (Array.isArray(this.include) ? this.include.filter(rule => rule.test(window.url || window.location.href)).length > 0 : this.include.test(window.url || window.location.href))) && (!this.exclude || (Array.isArray(this.exclude) ? 0 === this.exclude.filter(rule => rule.test(window.url || window.location.href)).length : !this.exclude.test(window.url || window.location.href))),
- get redState() ({
- "16": `./icons/${this.value}_red_16.png`,
- "32": `./icons/${this.value}_red_32.png`,
- "36": `./icons/${this.value}_red_36.png`,
- "64": `./icons/${this.value}_red_64.png`
- })
- });
Advertisement
Add Comment
Please, Sign In to add comment