User:Polo/vector.js

Source: 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.
if(screen.height > 0) //disable for mobile browsers (mine apparently returns 0 for screen.height)

{

// Teahouse scripts
importScript("User:Writ Keeper/Scripts/teahouseTalkback.js"); // Adds Talkback reminder when you save an edit at the Teahouse
importScript("User:Writ Keeper/Scripts/teahouseTalkbackLink.js"); // Adds a talkback link to signatures on the Teahouse
importScript('User:Writ Keeper/Scripts/teahouseResponder.js');
importScript("User:Writ Keeper/Scripts/teahouseUtility.js"); // Gives one-click option to add Teahouse invitation or talkback to a user
importScript("User:Ocaasi/WikiLoveinstallscript.js");

// NPP
importScript('User:TheJosh/Scripts/NewPagePatrol.js');

npp_enabled = true;
npp_refresh = 2;
npp_num_pages = 9;

importScript('User:Lourdes/PageCuration.js'); // Linkback: [[User:Lourdes/PageCuration.js]]
importScript('User:Anomie/linkclassifier.js'); // Linkback: [[User:Anomie/linkclassifier.js]]
importStylesheet('User:Anomie/linkclassifier.css'); // Linkback: [[User:Anomie/linkclassifier.css]]
importScript('Wikipedia:WikiProject User scripts/Scripts/User tabs');
importScript('User:NuclearWarfare/Mark-blocked script.js');
importScript('User:Amalthea/userhighlighter.js');

$( function() {

        var NSWithoutSubpages = new Array( -1, 6, 8, 12, 13, 14, 15, 104, 105);

        if ( document.getElementById( 'p-tb' ) && NSWithoutSubpages.indexOf( mw.config.get('wgNamespaceNumber') ) == -1 ) {

                var subpagesLink = '/wiki/Special:PrefixIndex/' + mw.config.get('wgPageName') + '/';

                mw.util.addPortletLink( 'p-tb', subpagesLink, 'Subpages', 't-subpages', 'Subpages of this page' );

        }

});

mw.util.addPortletLink( 'p-interaction', '/wiki/User:Krinkle/RTRC', 'RTRC',

  't-rtrc', 'Real-time recent changes', 'c', '#n-contact' );

// others
importScript('User:Ale_jrb/sandbox.js');
importScript('User:Ale_jrb/Scripts/csdcheck.js');  //[[User:Ale_jrb/Scripts]]
importScript('User:Ale_jrb/Scripts/userhist.js');  //[[User:Ale_jrb/Scripts]]
importScript('User:Ale_jrb/Scripts/csdhelper.js'); //[[User:Ale_jrb/Scripts]]
importScript('User:Ale_jrb/Scripts/statusCheck.js');  //[[User:Ale_jrb/Scripts]]
importScript('User:Dr pda/editrefs.js');
importScript("User:Writ Keeper/Scripts/deletionFinder.js");
importScript("User:Writ Keeper/Scripts/refTooltips.js");
importScript("User:Writ Keeper/Scripts/googleTitle.js");
importScript('User:Nageh/rollbackSum.js');
rollbackSummaryDefault = "Reverted edits by [[Special:Contributions/$2|$2]] ([[User talk:$2|talk]]) to last version by $1"
importScript('User:Splarka/ajaxfilemove.js');
importScript('User:Jorgenev/scripts/EnhancedUserContribs.js');
importScript('User:NerdyScienceDude/Scripts/extratoolbarbuttons.js');
importScript("User:PleaseStand/highlight-comments.js");
importScript("User:PleaseStand/userinfo.js");
importScript("User:Equazcion/sysopdetector.js");
importScript('User:Ais523/votesymbols.js');
importScript('User:Mr.Z-man/closeAFD.js');
importScript('User:Doug/closemfd.js');
importScript('User:Smith609/toolbox.js');
importScript('User:Jujutacular/closeFPC.js');
importScript('Wikipedia:Igloo/gloo.js'); // [[WP:Igloo]]
importScript('User:Ohconfucius/script/MOSNUM dates.js');  //[[User:Ohconfucius/script/MOSNUM dates.js]]

}

$(addNewpages);

function addNewpages(){          mw.util.addPortletLink("p-tb","https://en.wikipedia.org/wiki/Special:NewPagesFeed" ,"New Pages Feed","tb-Newpages","View the New Pages Feed"); mw.util.addPortletLink("p-tb","https://en.wikipedia.org/w/index.php?title=Wikipedia:Featured_picture_candidates&action=edit&section=1" ,"Featured picture candidates (add)","tb-Featuredpictures","Click here to quickly tranclude a new FP nomination"); mw.util.addPortletLink("p-tb","http://www.facebook.com" ,"Facebook","tb-Facebook","Go to Facebook"); mw.util.addPortletLink("p-tb","http://translate.google.com/" ,"Google Translate","tb-Googletranslate","Translate it in Google Translate!");}