User:Connormah/monobook.js
Appearance
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. This code will be executed when previewing this page. |
The accompanying .css page for this skin can be added at User:Connormah/monobook.css. |
importScript('User:Ale_jrb/Scripts/igloo.js'); // [[User:Ale_jrb/Scripts/igloo]]
importScript('User:Gary King/nominations viewer.js'); // [[Wikipedia:Nominations Viewer]]
// Add [[WP:Reflinks]] launcher in the toolbox on left
addOnloadHook(function () {
mw.util.addPortletLink(
"p-tb", // toolbox portlet
"http://toolserver.org/~dispenser/cgi-bin/webreflinks.py/" + mw.config.get('wgPageName')
+ "?client=script&citeweb=on&overwrite=&limit=20&lang=" + mw.config.get('wgContentLanguage'),
"Reflinks" // link label
)});
importScript("User:Animum/easyblock.js"); //[[User:Animum/easyblock.js]]
ebPrefs = {
showOnClick : true,
showOnPages : ["user_usertalk", "contribs"]
};
//CSD Deleter and Decliner
importScript('User:Ale_jrb/Scripts/csdcheck.js');
var notifyByDefaultDel = true;
importScript('User:Ale_jrb/Scripts/csdhelper.js');
importScript('User:Ohconfucius/script/MOSNUM dates.js'); //[[User:Ohconfucius/script/MOSNUM dates.js]]
//Mass rollback function
//Written by John254 and modified/rewritten by Writ Keeper; original is at https://en.wikipedia.org/wiki/User:John254/mass_rollback.js
//Adapted from User:Mr.Z-man/rollbackSummary.js
//Instructions: Selecting the "rollback all" tab when viewing a user's contributions history
//will open all rollback links displayed there. (Use with caution)
function rollbackEverythingWKMR() {
$("a[href*='action=rollback']").each(function(ind, el)
{
window.open(el.href, "_blank");
});
}
$(document).ready(function()
{
if(mw.config.get("wgCanonicalSpecialPageName") === "Contributions" && $("span.mw-rollback-link").length > 0)
{
mw.util.addPortletLink('p-cactions', 'javascript:rollbackEverythingWKMR()', "rollback all", "ca-rollbackeverything", "rollback all edits displayed here");
}
});