User:Rob Kam/common.js

From London Hackspace Wiki
< User:Rob Kam
Revision as of 10:50, 16 November 2014 by Rob Kam (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
//syntax highlighter
mw.loader.load('//www.mediawiki.org/w/index.php?title=MediaWiki:Gadget-DotsSyntaxHighlighter.js&action=raw&ctype=application/javascript&smaxage=21600&maxage=86400');

//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 = [
	[/ +<ref\b/g, '<ref'],
	[
	    /(\n[*#]+) *([^\s*#:;])/g,
	    '$1 $2'
	],
];