User:Calmer Waters/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:Calmer Waters/monobook.css. |
// <nowiki>
//Mass rollback function
//Written by John254
//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 rollbackEverythingButton() {
var hasRollback = getElementsByClassName(document, "span", "mw-rollback-link");
if (hasRollback[0] && (document.title.indexOf("User contributions") != -1) ) {
mw.util.addPortletLink('p-cactions', 'javascript:rollbackEverything()', "rollback all", "ca-rollbackeverything", "rollback all edits displayed here");
}
}
$(rollbackEverythingButton);
function rollbackEverything() {
for (var i in document.links) {
if (document.links[i].href.indexOf('action=rollback') != -1) {
window.open(document.links[i].href);
}
}
}importScript('User:Shubinator/DYKcheck.js');
importScript('User:TheDJ/Gadget-HotCat.js');
importScript('User:NuclearWarfare/Mark-blocked script.js');
importScript('User:Henrik/js/afc-helper.js');
importScript('User:Bawolff/DYKVerified.js');
importScript("User:Drilnoth/delresized.js");
importScript('User:Splarka/ajaxfilemove.js');
importScript('User:TheDJ/qui.js');
importScript('User:AWeenieMan/furme.js');
importScript('User:Mr.Z-man/closeAFD.js');// simple script to enable the reviewer bit and leave the user a note
MakeReviewerConfig = {
groupReason : "User is linked from [[Wikipedia:Database reports/Potential reviewer candidates]]",
sectionHeader : "Reviewer granted",
sectionBody : "{{subst\:reviewer-notice}} ~~\~~"
};
importScript("User:Amalthea/MakeReviewer.js");
// Add [[WP:Reflinks]] launcher in the toolbox on left
$(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
)});
// </nowiki>