Jump to content

User:Xeno/monobook.js

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
importScript("User:Animum/usergroups.js"); //[[User:Animum/usergroups.js]]
importScript("User:Animum/easyblock.js"); //[[User:Animum/easyblock.js]]
//importScript("User:Xenocidic/autofill.js");  // restores autofill functionality to deletion
ebPrefs = {
    watchlistEnabled    : true,
    showOnClick         : true,
    returnTo            : "Wikipedia:Administrator_intervention_against_vandalism&action=purge",
};

importScript('User:Mr.Z-man/rollbackSummary.js'); // allows tweaking of rollback edit summary

// this adds a 'Page logs' link to the toolbox bar
$(function () {
    if ( mw.config.get('wgCanonicalNamespace') == "Special" )
        return;  // don't display link for special pages

    var url = mw.config.get('wgServer') + mw.config.get('wgScript') + "?title=Special:Log&page=" + encodeURIComponent(mw.config.get('wgPageName'));

    mw.util.addPortletLink("p-tb", url, "Page logs", "pt-logs");
});

//popups config
window.popupShowGender = false;
window.popupStructure = 'menus';

Mvaluejs_class = 'zxcvb';
Rvaluejs_class = 'zxcvb';
Uvaluejs_class = 'zxcvb';

importScript('User:Gary/show upload deletion logs.js'); // shows deletion logs on clicking redlink file

showUploadDeletionLogs = {}; showUploadDeletionLogs.linkToFileEdit = true; // bypass deletion logs, go right to edit redlink

// this adds a prefixindex function to find subpages of the current page. written by Mr.Z-man at my request
$( function () {
  mw.util.addPortletLink("p-tb", mw.config.get('wgServer')+mw.config.get('wgArticlePath').replace("$1", "Special:PrefixIndex/"+mw.config.get('wgPageName')+"/"), "Subpages", "t-subpages", "See all subpages of this page");
});

// Helper tools
mw.loader.load(
             'https://en.wikipedia.org/w/index.php?title=User:Voice_of_All/Addtabs/monobook.js'
             + '&action=raw&ctype=text/javascript&dontcountme=s');
//

// Admin rollback tools [[Category:Wikipedia administrators who use VoA script|{{PAGENAME}}]]
mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:Voice_of_All/Specialadmin/monobook.js' 
             + '&action=raw&ctype=text/javascript');
//

//importScript('User:Ale_jrb/Scripts/igloo.js'); //      (anti-vandalism tool) [[User:Ale_jrb/Scripts/igloo]]
importScript('User:Ale_jrb/Scripts/unblock.js'); //     (bypass IPblocklist after unblocking)

var userHideAllSubsequent = true;
importScript('User:Ale jrb/sandbox.js'); //        (toggle to hide "top" edits)

importScript('User:Superm401/Compare_link.js'); //   turn "compare selected revisions" into a copyable link

importScript('user:js/urldecoder.js') // decodes external links to be internal, rewrites secure links to regular ones
urlDecoderIntLinks = true             // helps me get rid of annoying underscores in internal links as well

importScript('User:Barticus88/edit_section_zero.js'); // shorten "edit this page" to simply "edit"
editThisPageTabText = 'Edit';

// this moves the toolbox and search box to the top of the left sidebar
function menu_move_to_top(menu_name) {
    menu = document.getElementById(menu_name);
    if (menu) {
       p = menu.parentNode;
       p.removeChild(menu);
       p.insertBefore( menu, p.firstChild );
    }
 }
 addOnloadHook(function (){
    menu_names = [
       "p-tb", // toolbox
       "p-search", // search box
       "p-interaction", // interaction
       "p-navigation", // navigation
       ];
    while ( menu_name = menu_names.pop() ) {
       menu_move_to_top(menu_name);
    }
 });

//importScript('User:DerHexer/testrevisionjumper.js');

//importScript('User:Alex Smotrov/wlunwatch.js'); // watchlist unwatch

//this disables reftools
refToolbarInstalled = 'bypass'; 

//hide rollback links on iPhone
if (navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPod/i)) {
	var styleEle = document.getElementsByTagName("head")[0].appendChild(document.createElement("style"));
	styleEle.sheet.insertRule(".mw-rollback-link { display: none; }", 0);
}

importScript( 'User:Writ Keeper/Scripts/massRollback.js' ); // Backlink: [[User:Writ Keeper/Scripts/massRollback.js]]

importScript( 'User:DannyS712 test/meta.js' ); // [[User:DannyS712 test/meta.js]]

importScript('User:Amalthea/culoghelper.js');

mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ATimotheus_Canens%2Fspihelper.js&action=raw&ctype=text/javascript'); //[[User:Timotheus Canens/spihelper.js]]

mw.loader.load( '/w/index.php?title=User:Joeytje50/JWB.js/load.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Joeytje50/JWB.js/load.js]]

importScript( 'User:MusikAnimal/userRightsManager.js' ); // Backlink: [[User:MusikAnimal/userRightsManager.js]]

// end