User:Rob Kam/common.js

//enhanced diff - https://de.wikipedia.org/wiki/Benutzer_Diskussion:TMg/cleanDiff mw.loader.load('//de.wikipedia.org/w/index.php?title=Benutzer:TMg/cleanDiff.js&action=raw&ctype=text/javascript');

//format tidier - https://meta.wikimedia.org/wiki/User:TMg/autoFormatter mw.loader.load('//de.wikipedia.org/w/index.php?title=Benutzer:TMg/autoFormatter.js&action=raw&ctype=text/javascript'); var autoFormatMaskedLinks = false; var autoFormatWikimediaLinks = false; var autoFormatReplacements = [ ['S.D.I.Y.', 'SDIY'], ['', '\\w -->'], ['\\dmm','\\d mm'], [' mm',' mm'], //['\\d"','\\d inches'], // messes up named references with digits	[/ +<ref\b/g, '<ref'],	[	   /(\n[*#]+) *([^\s*#:;])/g,	    '$1 $2'	], ];

// https://en.wikipedia.org/wiki/User:Joeytje50/JWB Javascript Wiki Browser /** This script contains the code required for loading User:Joeytje50/AWB.js. * All other code is located at that page. */ //Idea by User:Epicgenius $.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.loader.load('//en.wikipedia.org/w/index.php?title=User:Joeytje50/JWB.js&action=raw&ctype=text/javascript');