Test Wiki:JWB: Difference between revisions

From Test Wiki
Jump to navigation Jump to search
Content deleted Content added
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..."
 
m Protected "Test Wiki:JWB": High traffic page: page describing project related information ([Edit=Allow only administrators] (indefinite) [Move=Allow only autoconfirmed users] (indefinite) [Delete=Allow only administrators] (indefinite) [Protect=Allow only administrators] (indefinite))
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
Insert the following code and go to [[Test Wiki:AutoWikiBrowser/Script]] to run the script.
Insert the following code in [[Special:MyPage/common.js|your /common.js]] and go to [[Test Wiki:AutoWikiBrowser/Script]] to run the script.


$.when(mw.loader.using(['mediawiki.util'], $.ready)).done( function() {
$.when(mw.loader.using(['mediawiki.util'], $.ready)).done( function() {

Latest revision as of 19:32, 9 April 2021

Insert the following code in your /common.js 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');