User:Codename Noreste/common.js: Difference between revisions
From Test Wiki
Content deleted Content added
Adding the JWB script. |
Removed filter-highlighter and the JWB script. |
||
| Line 12: | Line 12: | ||
mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ASuffusion_of_Yellow%2Fbatchtest-plus.js&action=raw&ctype=text/javascript'); |
mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ASuffusion_of_Yellow%2Fbatchtest-plus.js&action=raw&ctype=text/javascript'); |
||
mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ASuffusion_of_Yellow%2FfilterDiff.js&action=raw&ctype=text/javascript'); |
mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ASuffusion_of_Yellow%2FfilterDiff.js&action=raw&ctype=text/javascript'); |
||
mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ASuffusion%20of%20Yellow%2Ffilter-highlighter.js&action=raw&ctype=text/javascript'); |
|||
mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ASuffusion of Yellow%2FfilterNotes.js&action=raw&ctype=text/javascript'); |
mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ASuffusion of Yellow%2FfilterNotes.js&action=raw&ctype=text/javascript'); |
||
mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ASuffusion_of_Yellow%2FfilterTest.js&action=raw&ctype=text/javascript'); |
mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ASuffusion_of_Yellow%2FfilterTest.js&action=raw&ctype=text/javascript'); |
||
window.filterHighlighterConfig = { |
|||
// If you find the default highlighting ugly, you can substitute your own stylesheet here |
|||
// If you prefer no highlighting at all, use the empty string ("") |
|||
style : "User:Codename Noreste/filter-highlighter.css", |
|||
// Change this to true to highlight the entire [[Special:AbuseFilter/nnn]] page. |
|||
// Mostly intended for EFMs, as this will make it impossible to forget that |
|||
// you're editing a filter that's set to disallow. |
|||
style_editor : true, |
|||
// Show title text (tooltip). Set to false for the default "Special:AbuseFilter/123" |
|||
show_title: true, |
|||
// Allow filter information to be up to this many seconds old. |
|||
// Set to a much larger value for slow connections. Set to 0 if you don't mind |
|||
// downloading an extra 140K every time you visit a page that mentions filters |
|||
cache_seconds : 30 * 60 |
|||
}; |
|||
$.when(mw.loader.using(['mediawiki.util'], $.ready)).done( function() { |
|||
mw.util.addPortletLink("p-tb", mw.config.get('wgArticlePath').replace('$1', "Project:AutoWikiBrowser/Script"), "JS Wiki Browser", "tb-awbscript", "Run Javascript Wiki Browser"); |
|||
}); |
|||
if (mw.config.get('wgCanonicalNamespace')+':'+mw.config.get('wgTitle') === 'Project:AutoWikiBrowser/Script' && mw.config.get('wgAction') == 'view') |
|||
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Joeytje50/JWB.js&action=raw&ctype=text/javascript'); |
|||