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.
//catwatch
//importScript('User:Ais523/catwatch.js'); //[[User:Ais523/catwatch.js]]

// ***********************************************
// Please leave the following line
// [[user:Where/usertabs]]
/*
$(function() {
  if (mw.config.get('wgTitle').indexOf("/") != -1 || document.title.indexOf("- History -") != -1)  //no subpages or history
     return;
  if (mw.config.get('wgCanonicalNamespace') == "User" || mw.config.get('wgCanonicalNamespace') == "User_talk") {
     var username = encodeURIComponent( mw.config.get('wgTitle') );
     mw.util.addPortletLink("p-cactions", mw.config.get('wgServer') + "/wiki/Special:Contributions/" + username, "Contribs", "ca-contrib", "User contributions");
     mw.util.addPortletLink("p-cactions", "http://tools.wikimedia.de/~interiot/cgi-bin/Tool1/wannabe_kate?username=" + username + "&site=en.wiki.x.io", "Edit count", "ca-editcount", "Edit count from Interiot's Tool1");
     mw.util.addPortletLink("p-cactions", mw.config.get('wgServer') + "/w/index.php?title=Special:Log&type=move&user=" + username, "Page moves", "ca-pagemoves", "Page moves by this user");
     mw.util.addPortletLink("p-cactions", mw.config.get('wgServer') + "/w/index.php?title=Special:Log&type=block&page=User:" + username, "Blocks received", "ca-blog", "Blocks received by this user");
     mw.util.addPortletLink("p-cactions", mw.config.get('wgServer') + "/w/index.php?title=Special:Prefixindex&from=" + username + "&namespace=2", "Userspace", "", "List of pages in this user's userspace");
     mw.util.addPortletLink("p-cactions", mw.config.get('wgServer') + "/w/index.php?title=Special:Log&type=block&user=" + username, "Blocks given", "", "Blocks by this user");
     mw.util.addPortletLink("p-cactions", mw.config.get('wgServer') + "/w/index.php?title=Special:Log&type=protect&user=" + username, "Protections", "", "Protections by this user");
     mw.util.addPortletLink("p-cactions", mw.config.get('wgServer') + "/w/index.php?title=Special:Log&type=delete&user=" + username, "Deletions", "", "Deletions by this user");
  }
});
*/
// *********************************************** 

// Helper tools (NEEDED FOR VOICE OF ALL'S OTHER SCRIPTS)
mw.loader.load(
             'https://en.wiki.x.io/w/index.php?title=User:Voice_of_All/Addtabs/monobook.js'
             + '&action=raw&ctype=text/javascript&dontcountme=s');

// ***********************************************

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

// ***********************************************

// the recent changes that can be enabled/disabled in the sidebar
// importScript('User:TheJosh/Scripts/RecentChangesPatrol.js');


// ***********************************************

// the new pages that can be enabled/disabled in the sidebar
// importScript('User:TheJosh/Scripts/NewPagePatrol.js');

// ***********************************************

// the new users that can be enabled/disabled in the sidebar
// importScript('User:TheJosh/Scripts/NewUserPatrol.js');

// ***********************************************

 
// ***********************************************


// HistoryCount
$(function (){
    var N = 250;      // <<== CHANGE TO YOUR LIKING
    var x = document.getElementById('ca-history');
    if(!x) return;
    x.getElementsByTagName('a')[0].href += "&limit=" + N;
});
// importScript('User:Ais523/topcontrib.js'); // [[User:Ais523/topcontrib.js]]


// https://en.wiki.x.io/wiki/User:Symplectic_Map/AutoSpell
importScript('User:Symplectic_Map/spell.js');

/* SOMEHOW THE EMDASH BUSINESS BELOW CONFLICTS WITH THE AUTOSPELL SCRIPT SO COMMENTED

// This script changes the "Your signature with timestamp" edit button to use a real em dash instead of two hyphens.
 
(function () {
    var oldAddButton = addButton;
    if (typeof(oldAddButton) != 'function') return;
    addButton = function () {
        if (arguments.length > 2)
            arguments[2] = arguments[2].replace(/^--(~+)$/, '—$1');
        oldAddButton.apply(this, arguments);
    };
})();
*/



//  interwiki watchlist
// importScript ("User:Yair rand/interwikiwatchlist.js"); 
//

//Tool to hide contribs that are most recent edits (see User:Markhurd/hidetopcontrib)
userHideAllSubsequent=true;
importScript('User:Markhurd/hidetopcontrib.js');

//DYK checker
importScript('User:Shubinator/DYKcheck.js'); //DYKcheck tool

mw.loader.load('//en.wiki.x.io/w/index.php?title=User%3ADr+pda%2Fprosesize.js&action=raw&ctype=text/javascript'); // [[User:Dr pda/prosesize.js]]

// User:Anomie/linkclassifier.js
importScript('User:Anomie/linkclassifier.js'); // Linkback: [[User:Anomie/linkclassifier.js]]
importStylesheet('User:Anomie/linkclassifier.css'); // Linkback: [[User:Anomie/linkclassifier.css]]

importScript('User:Barticus88/WhatLinksHere.js');  // [[User:Barticus88/WhatLinksHere.js]]

// importScript('User:Anomie/ajaxpreview.js'); // Linkback: [[User:Anomie/ajaxpreview.js]]