Jump to content

User:NQ/common.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by NQ (talk | contribs) at 17:49, 30 June 2015 (try css). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
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:PleaseStand/userScriptSandbox.js'); // [[Wikipedia:User script sandbox]]; Script sandbox

//Customization
importScript('User:NQ/custom-scripts/6tabs.js'); //Adds Tabs to vector skin; Linkback:[[User:js/6tabs-vector.js]]
importStylesheet('User:Rezonansowy/FloatHead.css'); //Floating Header - makes the Wikipedia head navigation floating; Linkback:[[User:User:Rezonansowy/FloatHead.js]]
importScript('User:Mattflaschen/Compare link.js'); //Converts Compare Diffs button to link format; Linkback:[[User:Mattflaschen/Compare link.js]]
importScript('User:NQ/custom-scripts/ajaxWatchlist.js'); //Updates Watchlist automatically; Linkback:[[User:Theopolisme/Scripts/ajaxWatchlist.js]]
 
//User data
importScript("User:PleaseStand/userinfo.js"); // [[User:PleaseStand/User info]]; Linkback:[[User:PleaseStand/userinfo.js]]
importScript('User:Theopolisme/Scripts/adminhighlighter.js'); //Highlights sysops; Linkback:[[User:Theopolisme/Scripts/adminhighlighter.js]]

//Rollback
importScript("User:Writ Keeper/Scripts/massRollback.js"); // Rollback all contribs by a user; Linkback: [[User:Writ Keeper/Scripts/massRollback.js]]

//Misc
importScript("User:Writ Keeper/Scripts/deletionFinder.js"); // Links to the deletion log and/or AfDs; Linkback: [[User:Writ Keeper/Scripts/deletionFinder.js]]
importScript("User:Writ Keeper/Scripts/oldSchoolThanks.js"); // Linkback: [[User:Writ Keeper/Scripts/oldSchoolThanks.js]]
importScript('User:Theopolisme/Scripts/autocompleter.js'); // [[User:Theopolisme/Scripts/autocompleter]]; Linkback: [[User:Theopolisme/Scripts/autocompleter.js]]
importScript('User:NQ/links.js');
 
//importScript('User:Mr.Z-man/closeAFD.js'); Linkback: [[User:Mr.Z-man/closeAFD.js]]
//importScript('User:Jackmcbarn/editProtectedHelper.js'); //Edit Protect Helper; Linkback: [[User:Jackmcbarn/editProtectedHelper.js]]
//importScript("User:PleaseStand/segregate-refs.js"); // [[User:PleaseStand/References segregator]]; Linkback: [[User:PleaseStand/segregate-refs.js]]
//importScript('User:Lupin/recent2.js'); //Lupin Anti Vandal Tool; Linkback: [[User:Lupin/recent2.js]]
 
//Script Manager
importScript('User:MusikAnimal/scriptManager.js'); // [[User:MusikAnimal/scriptManager]]; Backlink: [[User:MusikAnimal/scriptManager.js]]
scriptsToManage = {
   "Edit Protected Helper" : "//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Jackmcbarn/editProtectedHelper.js",
   "Reference Segregator" : "//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:PleaseStand/segregate-refs.js",
   "Lupin Anti Vandal" : "//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Lupin/recent2.js",
   "AFD Closer" : "//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Mr.Z-man/closeAFD.js",
};

//Highlight my own comments on click
importScript("User:PleaseStand/highlight-comments.js"); // Linkback:[[User:PleaseStand/highlight-comments.js]]
window.highlightCommentsSettings = {
  highlighterFunction: function( hc ) {
    hc.addColorForUsers( '#e9e9e9', [     //Set highlight color to light grey
      mw.config.get( 'wgUserName' ),
    ] );
    hc.addMenuItem();
  }
};