Jump to content

User:Writ Keeper/common.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.
bannedPageArray = [];
lazyCheckCUStaleness = false;
maxUsersCUStaleness = 25;

$(document).ready(function ()
{
  $(".mw-changeslist-diff").attr("target","_blank");
  $("#mw-content-text").on("click","a.new", function(event){
    $(this).attr("href", $(this).attr("href").replace("&action=edit", ""));
  });
});

mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:Writ_Keeper/Scripts/itsThursday.js&action=raw&ctype=text/javascript");
mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:Writ_Keeper/Scripts/syntaxChecker.js&action=raw&ctype=text/javascript");
mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:Mdaniels5757/markAdmins.js&action=raw&ctype=text/javascript");
mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:Writ_Keeper/Scripts/g10viewer.js&action=raw&ctype=text/javascript");
mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:SD0001/RFUD-helper.js&action=raw&ctype=text/javascript");
mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:Writ_Keeper/Scripts/unmobilePlus.js&action=raw&ctype=text/javascript");
//mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:Writ Keeper/Scripts/markBlocked.js&action=raw&ctype=text/javascript");
mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:Writ Keeper/Scripts/elRemover.js&action=raw&ctype=text/javascript");
mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:Writ_Keeper/Scripts/peerReviewCloser.js&action=raw&ctype=text/javascript");
//mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:Writ Keeper/Scripts/timezone.js&action=raw&ctype=text/javascript");
mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:Writ_Keeper/Scripts/logoutConfirm.js&action=raw&ctype=text/javascript");
mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:Writ_Keeper/Scripts/sockStaleness.js&action=raw&ctype=text/javascript");
mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:Writ_Keeper/Scripts/deorphanizer.js&action=raw&ctype=text/javascript");
//mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:Writ_Keeper/Scripts/topicBanEnforcer.js&action=raw&ctype=text/javascript");
mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:Writ_Keeper/Scripts/cuStaleness.js&action=raw&ctype=text/javascript");


//mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:Writ_Keeper/Scripts/simpleBlockDefaults.js&action=raw&ctype=text/javascript");

//mw.loader.load("addPortletLink")
mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:Writ_Keeper/Scripts/blackjack.css&action=raw&ctype=text/css","text/css");
mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:Writ_Keeper/Scripts/blackjack.js&action=raw&ctype=text/javascript");

mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:Writ_Keeper/Scripts/historyDeleter.js&action=raw&ctype=text/javascript");
mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:Writ_Keeper/Scripts/historySection.js&action=raw&ctype=text/javascript");
mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:Writ_Keeper/Scripts/massRevdel.js&action=raw&ctype=text/javascript");
//mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:Writ_Keeper/Scripts/blockDefaults.js&action=raw&ctype=text/javascript");
//mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:Writ_Keeper/Scripts/afcDialog.js&action=raw&ctype=text/javascript");
mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:Writ_Keeper/Scripts/orangeBar.js&action=raw&ctype=text/javascript");
//mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:Writ_Keeper/Scripts/autoCloser.js&action=raw&ctype=text/javascript");
mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:Writ_Keeper/Scripts/googleTitle.js&action=raw&ctype=text/javascript");
//mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:Writ_Keeper/Scripts/teahouseTalkback.js&action=raw&ctype=text/javascript");
//mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:Writ_Keeper/Scripts/teahouseTalkbackLink.js&action=raw&ctype=text/javascript");
//mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:Writ_Keeper/Scripts/teahouseReminder.js&action=raw&ctype=text/javascript");
mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:Equazcion/sysopdetector.js&action=raw&ctype=text/javascript");
//mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:Writ_Keeper/Scripts/massProtect.js&action=raw&ctype=text/javascript");


markAsViewed = true;
mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:Writ_Keeper/Scripts/commonHistory.js&action=raw&ctype=text/javascript");

mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:Anomie/linkclassifier.js&action=raw&ctype=text/javascript"); // Linkback: [[User:Anomie/linkclassifier.js]]
mw.loader.load('/w/index.php?title=User:Anomie/linkclassifier.css&action=raw&ctype=text/css', 'text/css' ); // Linkback: [[User:Anomie/linkclassifier.css]]
//mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:Ais523/watchlistnotifier.js&action=raw&ctype=text/javascript");

$(document).ready( function() 
{
        var NSWithoutSubpages = new Array( -1, 6, 8, 12, 13, 14, 15, 104, 105);
        if ( $('#p-tb').length > 0 && NSWithoutSubpages.indexOf( mw.config.get("wgNamespaceNumber") ) == -1 ) 
		{
                var subpagesLink = '/wiki/Special:PrefixIndex/' + mw.config.get("wgPageName") + '/';
$.when( mw.loader.using( [ 'mediawiki.util' ] ), $.ready ).then( function() {
                mw.util.addPortletLink( 'p-tb', subpagesLink, 'Subpages', 't-subpages', 'Subpages of this page' );
} );
        }
});

$.when( mw.loader.using( [ 'mediawiki.util' ] ), $.ready ).then( function() {

  if(mw.config.get("wgCanonicalNamespace") === "User" || mw.config.get("wgCanonicalNamespace") === "User_talk")
  {
    mw.util.addPortletLink( "p-tb", "/wiki/Special:Unblock/" + /[^\/]+/.exec(wgTitle)[0], "Unblock user", "t-unb", "Unblock user", "u", "#t-emailuser");
  }
  mw.util.addPortletLink('p-personal', '/wiki/User:Writ_Keeper/To_do', 'To-do', 'pt-todo', 'Go to to-do list', null, '#pt-preferences');
} );

//mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:Writ_Keeper/Scripts/teahouseUtility.js&action=raw&ctype=text/javascript");
mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:Writ_Keeper/Scripts/deletionFinder.js&action=raw&ctype=text/javascript");
//mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:Writ_Keeper/Scripts/refTooltips.js&action=raw&ctype=text/javascript");
mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:Shubinator/DYKcheck.js&action=raw&ctype=text/javascript");
//mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:Writ_Keeper/Scripts/mickopedia.js&action=raw&ctype=text/javascript");
mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:Writ_Keeper/Scripts/watchlistContribs.js&action=raw&ctype=text/javascript");
//mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:Ocaasi/WikiLoveinstallscript.js&action=raw&ctype=text/javascript");
mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:Writ_Keeper/Scripts/rollbackConfirm.js&action=raw&ctype=text/javascript");
mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:Writ_Keeper/Scripts/massRollback.js&action=raw&ctype=text/javascript");
mw.loader.load("https://en.wikipedia.org/w/index.php?title=USer:Writ_Keeper/Scripts/previewAndDiff.js&action=raw&ctype=text/javascript");
mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:Writ_Keeper/Scripts/backlinkWarner.js&action=raw&ctype=text/javascript");

$(".suggestions").attr("tabindex", "-1");
//mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:Writ_Keeper/Scripts/renameWarner.js&action=raw&ctype=text/javascript");
//mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:Writ_Keeper/Scripts/easyBlock.js&action=raw&ctype=text/javascript");
//mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:Writ_Keeper/Scripts/searchWatcher.js&action=raw&ctype=text/javascript");
//mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:Writ_Keeper/Scripts/afcHelperWrapper.js&action=raw&ctype=text/javascript");
mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:Writ_Keeper/Scripts/autoping.js&action=raw&ctype=text/javascript");