User:JBW3/Copy of old monobook js
// Copy of deleted version of User:JBW3/monobook.js
// *** *** *** *** *** *** *** *** *** *** ***
// If you attempt to follow a link to a deleted revision of a page, this script shows a link to the Special:Undelete page. // Documented at User:Enterprisey/link-deleted-revs importScript( 'User:Enterprisey/link-deleted-revs.js' ); // Backlink: User:Enterprisey/link-deleted-revs.js
//On any User's Contributions page, this script hides lines when that user has the top contribution for a page. Clicking again undoes the hiding. //(If userHideAllSubsequent=true, all subsequent contributions are hidden too, more like watchlists. - This option is not set here.) //Documented at User:Markhurd/hidetopcontrib importScript('User:Markhurd/hidetopcontrib.js');
// Gives option to provide an edit summary for mass rollback. mw.loader.load( '//en.wikipedia.org/w/index.php?title=User:Writ_Keeper/Scripts/massRollback.js&action=raw&ctype=text/javascript' );
importScript('User:Mr. Stradivarius/gadgets/SpamUserPage.js'); // Linkback: User:Mr. Stradivarius/gadgets/SpamUserPage.js // Documentation: User:Mr. Stradivarius/gadgets/SpamUserPage (Delete, block, and post message all in one go.)
importScript('User:Evad37/XFDcloser.js'); // User:Evad37/XFDcloser
/*** Easy Block. See User:Animum/EasyBlock ***/ //Disabled because it appears to prevent Twinkle tabs from showing. //importScript("User:Animum/easyblock.js"); //User:Animum/easyblock.js
importScript("User:PleaseStand/userinfo.js"); // User info
/*** Begin highlightmyname2 ***/ //This script (User:ais523/highlightmyname2.js) highlights all instances of the //logged-in user's username on pages by giving them a bright red background. importScript('User:Ais523/highlightmyname2.js'); /*** End highlightmyname2 ***/
/*** Begin adminhighlighter (From User:Theopolisme/Scripts/adminhighlighter.js) ***/ /*** See User:Theopolisme/Scripts/adminhighlighter ***/ mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ATheopolisme%2FScripts%2Fadminhighlighter.js&action=raw&ctype=text/javascript'); // User:Theopolisme/Scripts/adminhighlighter.js /*** End adminhighlighter ***/
/*** Begin CSD Helper (See User:Ale jrb/Scripts) ***/
importScript('User:Ale_jrb/Scripts/csdhelper.js'); //User:Ale_jrb/Scripts
/*** End CSD Helper ***/
/*** BEGIN WIKIBREAK ENFORCER ***/ $(document).ready(function() {
/*** Start editing here ***/
// When you want to end your break? // no leading zeroes. (example: 9 - correct, 09 - incorrect)
var date = { year: 2008, month: 2, day: 6}; var time = { hours: 20, minutes: 22, seconds: 0 };
/*** Stop editing here ***/
var currentDate = new Date(); var enforcedBreakEnd = new Date( date.year,date.month-1,date.day,time.hours,time.minutes,time.seconds); if (currentDate <= enforcedBreakEnd) { alert("Enforced wikibreak until "+enforcedBreakEnd.toLocaleString() + "\n(now is "+currentDate.toLocaleString()+")\n\nBye!"); location = "//"+location.host+"/w/index.php?title=" + "Special:Userlogout&returnto=Main_Page"; } }); /*** END WIKIBREAK ENFORCER ***/ //*** Twinkle - old installation method disabled, to be replaced with "gadget" method. // importScript('User:AzaToth/twinkle.js')
//*** Igloo importScript('User:Ale_jrb/Scripts/igloo.js'); // User:Ale_jrb/Scripts/igloo
//Mass rollback function //**** DISABLED 2018 06 30 ****// //Trying new version, rpelacing earlier versions, 2017 04 30 //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)
//*** jQuery(document).ready(function ($) {
//*** function rollbackEverything() { //*** for (var i in document.links) { //*** if (document.links[i].href.indexOf('action=rollback') != -1) { //*** window.open(document.links[i].href); //*** } //*** } //*** } //*** //*** function rollbackEverythingButton() { //*** var hasRollback = $("span.mw-rollback-link"); //*** if (hasRollback[0] && (document.title.indexOf("User contributions") !== -1) ) { //*** var link = mw.util.addPortletLink( //*** 'p-cactions', //*** '#', //*** 'rollback all', //*** 'ca-rollbackeverything', //*** 'rollback all edits displayed here' //*** ); //*** $(link).click(function (e) { //*** e.preventDefault(); //*** rollbackEverything(); //*** }); //*** } //*** }
//*** rollbackEverythingButton();
//*** }); // End mass rollback
//*** Strike through blocked editors mw.loader.load('https://ru.wikipedia.org/w/index.php?title=MediaWiki:Gadget-markblocked.js&action=raw&ctype=text/javascript');
//*** Easyblock //EasyBlock (source) gives admins—and only admins—a "block" tab with a drop-down list of block options. When you click on an option, it blocks the user and gives the appropriate notification template. See the documentation page for a more detailed description. User:Animum/EasyBlock //*Disabled because it seems to remove other tabs //importScript('User:Animum/easyblock.js');
//*** List usergroups on User:USERNAME or User talk:USERNAME importScript('User:Splarka/sysopdectector.js');
/** Checklinks toolbox item ***************************************************
- Description: Adds an item in toolbox portlet that runs the checklinks tool
- on the viewed page.
- Maintainers: User:Dispenser
- Installation: Copy and paste following code into you /monobook.js
- {{subst:js|User:Dispenser/Link checker/toolbox.js}} *
- /
function checklinks(){ mw.util.addPortletLink('p-tb', 'http://toolserver.org/~dispenser/cgi-bin/webchecklinks.py?page=' + mw.config.get('wgContentLanguage') + ':' + mw.config.get('wgPageName'), 'Check external links', 't-checklinks'); } if(mw.config.get('wgIsArticle')){ $(checklinks); }