User

Difference between revisions of "Eihel/common.js"

< User:Eihel

(test)
(corr.)
Line 4: Line 4:
 
'use strict';
 
'use strict';
 
mw.util.addPortletLink(
 
mw.util.addPortletLink(
'p-personal',
+
'p-tb',
 
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Joeytje50/JWB.js/load.js&action=raw&ctype=text/javascript'),
 
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Joeytje50/JWB.js/load.js&action=raw&ctype=text/javascript'),
 
'JWB',
 
'JWB',

Revision as of 17:47, 18 February 2024

// mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Joeytje50/JWB.js/load.js&action=raw&ctype=text/javascript');

mw.loader.using( [ 'mediawiki.util' ], function() {
	'use strict';
	mw.util.addPortletLink(
		'p-tb',
		mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Joeytje50/JWB.js/load.js&action=raw&ctype=text/javascript'),
		'JWB',
		'JavascriptWikiBrowser',
		'vers JWB',
		'',
	);
});