Test Wiki:JWB

From Test Wiki
Revision as of 15:17, 12 October 2020 by Killarnee (talk | contribs) (Created page with "Insert the following code and go to Test Wiki:AutoWikiBrowser/Script to run the script. $.when(mw.loader.using(['mediawiki.util'], $.ready)).done( function() { mw.util...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Insert the following code and go to Test Wiki:AutoWikiBrowser/Script to run the script.

$.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');