Difference between revisions of "User:Rob Kam/common.js"

From London Hackspace Wiki
Jump to: navigation, search
(add syntax highlighter)
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
//syntax highlighter
 
//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');
 
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'
 +
],
 +
];

Latest revision as of 10:50, 16 November 2014

//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'
	],
];