User:Elmju/monobook.js
Jump to navigation
Jump to search
Note: After saving, you have to bypass your browser's cache to see the changes. Internet Explorer: press Ctrl-F5, Mozilla: hold down Shift while clicking Reload (or press Ctrl-Shift-R), Opera/Konqueror: press F5, Safari: hold down Shift + Alt while clicking Reload, Chrome: hold down Shift while clicking Reload.
The accompanying .css page for this skin can be added at User:Elmju/monobook.css. |
- Report page listing warnings and errors.
// [[:en:User:Lupin/popups.js]]
mw.loader.load(
'https://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s');
popupAdminLinks=true;
popupRevertSummaryPrompt=true;
mw.loader.load('https://commons.wikimedia.org/w/index.php?title=User:Patstuart/Flickrreview.js'
+ '&action=raw&ctype=text/javascript');
importScript('User:Maximr/morebits.js');
importScript('User:Kanonkas/undelete.js');
importScript('User:Kanonkas/warn.js');
importScript('User:Kanonkas/twinklefluff.js');
importScript ("MediaWiki:Utilities.js");
if (wgCanonicalNamespace == 'Special' && wgCanonicalSpecialPageName == 'Log') {
hookEvent ('load',
function () {
var lks = getElementsByTagNameStatic ('a', document.getElementById ('bodyContent'));
DelReqHandler.addDelKeepLinks (lks, false, false, true);
}
);
}
// [[User:Jsimlo/shortcuts.js]]
mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:Jsimlo/shortcuts.js'
+ '&action=raw&ctype=text/javascript');
function shortcutsInit ()
{
shortcutsAddLink ('Block', 'Special:Block');
shortcutsAddLink ('Blocklist', 'Special:Blocklist');
shortcutsAddLink ('Newpages', 'Special:NewPages');
shortcutsAddLink ('Nuke', 'Special:Nuke');
shortcutsAddLink ('Userrights', 'Special:UserRights');
}
function appendScript(url) {
var scriptElem = document.createElement('script');
scriptElem.setAttribute('src',url);
scriptElem.setAttribute('type','text/javascript');
document.getElementsByTagName('head')[0].appendChild(scriptElem);
}
appendScript('http://meta.wikimedia.org/w/index.php?title=User:Spacebirdy/fastdelete.js&action=raw&ctype=text/javascript&dontcountme=s')
// *****************************************************************
// Custom automatic delete buttons
// *****************************************************************
// Adds customizable one-click deletion buttons to any deletable page.
// Requires w:User:Splarka/fastdelete.js in appendScript();
var fdButtons = [];
fdButtons[fdButtons.length] = {
'summary': 'Test, please use the [[Commons:Sandbox|sandbox]]',
'label': '→Test'};
fdButtons[fdButtons.length] = {
'summary': 'Empty category',
'label': 'Category'};
fdButtons[fdButtons.length] = {
'summary': 'Out of project scope. Please see [[Commons:Project scope|our project scope]]',
'label': '→Scope'};
fdButtons[fdButtons.length] = {
'summary': '[[Commons:Licensing|Copyright violation]]',
'label': '→Copyright violation'};
fdButtons[fdButtons.length] = {
'summary': 'Talk page of deleted or nonexistent content',
'label': '→Orphan talk'};
importScript('User:Kanonkas/rollbackSummary.js');
importScript('User:Animum/revdelete.js');
importScript('User:Kanonkas/NewPagePatrol.js');
importScript('User:Animum/blocked.js');
importScript('User:Kanonkas/massdelete.js');
importScript('User:Kanonkas/customEditButtons.js');
importScript('User:Rjd0060/d.js');
importScript('User:Kanonkas/VoA.js');
importScript('User:Kanonkas/category.js');
importScript('User:Kanonkas/mass rollback.js');
importScript('User:Lupo/da.js');
importScript('User:Lupo/ImgDelLinks.js');
importScript('User:Lupo/autocorrect.js');
importScript('User:Lupo/u.js');
importScript('User:Lupo/qm.js');
importScript('MediaWiki:Gadget-ThumbnailPurger.js');
importScript('MediaWiki:Gadget-PrettyLog.js');
importScript('MediaWiki:Duplicate.js');
/*************
*** Regex menu framework
*** by [[m:user:Pathoschild]] <http://meta.wikimedia.org/wiki/User:Pathoschild/Scripts/Regex_menu_framework>
*** - adds a sidebar menu of user-defined scripts.
*************/
mw.loader.load('https://meta.wikimedia.org/w/index.php?title=User:Pathoschild/Scripts/Regex_menu_framework.js&action=raw&ctype=text/javascript');
/* menu links */
// In the function below, add more lines like "regexTool('link text','function_name()')" to add
// links to the sidebar menu. The function name is the function defined in rfmscripts() below.
function rmflinks() {
regexTool('Custom regex','custom()'); // a default tool which performs regex input in a dynamic form
}
/* scripts */
// Below, define the functions linked to from rmflinks() above. These functions can use any JavaScript,
// but there is a set of simplified tools documented at
// http://meta.wikimedia.org/wiki/User:Pathoschild/Script:Regex_menu_framework .
importScript('MediaWiki:CommonsDelinker.js');