Jump to content

User:Innv/monobook.js

From Meta, a Wikimedia project coordination wiki

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
function import_script(s) {
	document.write('<script type="text/javascript" src="' 
		+ 'http://meta.wikimedia.org/w/index.php?title=' + s
		+ '&action=raw&ctype=text/javascript"></script>');
}

function get_query_value(query, name){
	if (typeof query != "string" || typeof name != "string")
		return "";
	var value = query.match('[&?]' + name + '=([^&]*)');
	if (value)
		return decodeURIComponent(value[1]);
	else
		return "";
}


import_script('User:Mike.lifeguard/remote.js');
mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:Js/diffs.js&action=raw&ctype=text/javascript');

// SBHandler parameters
SBHandlerAddComment   = ':{{Added}}. ~~'+'~'; 
SBHandlerRemComment   = ':{{Removed}}. ~~'+'~'; 
SBHandlerRevComment   = ':{{Reverted}}. ~~'+'~'; 
SBHandlerDecComment   = ':{{Declined}}. ~~'+'~';
SBHandlerCloseComment = ':{{Closing}}. ~~'+'~';