Jump to content

User:Thehelpfulone/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.
// <nowiki>
// **************************************************Administrator scripts*************************************
$(document).ready(function() { setTimeout(function() { $('#tw-arv').remove(); }, 200); }); //disable ARV tab in twinkle - not needed as I'm an admin
importScript('User:Animum/easyblock.js'); //[[User:Animum/easyblock.js]]
//mw.util.addCSS('#blockoptions ul { width: 114px !important; }');
importScript('User:Animum/userrights.js');// Easy changing of user rights
importScript('User:Animum/massdelete.js');// Mass deletion (access by going to [[Special:MassDelete]])
importScript('User:Mr.Z-man/closeAFD.js');//Close AFD
importScript('User:King of Hearts/closexfd.js');//Script for closing MFD, TFD, FFD, CFD, RFD
importScript('User:Phantomsteve/xfdrelist.js');//Script for relisting MFD, TFD, FFD, CFD, RFD
importScript('User:Lifebaka/closedrv.js');//Script for closing DRVs
importScript('User:Steel359/protection.js');//Easy protection tags
importScript('User:Rami_R/rfppClerk.js'); //[[User:Rami R/rfppClerk]]
importScript('User:Splarka/ajaxfilemove.js'); //File Moving Script
importScript('User:Howcheng/quickimgdelete.js');//[[User_talk:Howcheng/quickimgdelete.js]]
/*importScript('User:MGA73/nowcommonsreview.js');//Now Commons script*/
// simple script to enable the reviewer bit and leave the user a note

MakeReviewerConfig = {
    groupReason : "Editor can be trusted with reviewer",
    sectionHeader : "[[WP:REVIEWER|Reviewer]] Right Granted",
    sectionBody : "{{subst\:reviewer-notice}} ~~\~~"
};

importScript("User:Amalthea/MakeReviewer.js"); //A script to make someone a reviewer, as the name says!
importScript("User:Drilnoth/delresized.js"); //Script to delete old revisions of files that don't meet NFCC.

// importScript('User:HelloAnnyong/cumassblock.js'); // SPI Sock Blocking
// importScript('User:HelloAnnyong/sockblock.js'); // Another sock blocker
// importScript('User:Timotheus Canens/spihelper.js'); //SPI Helper

jQuery( document ).ready( function( $ ) {
  if(mw.config.get('wgCanonicalNamespace') == 'User' || mw.config.get('wgCanonicalNamespace') == 'User_talk') {
    mw.util.addPortletLink("p-navigation", "//en.wikipedia.org/wiki/Special:UserRights/" + mw.config.get('wgTitle'), "User rights");
  } else {
    mw.util.addPortletLink("p-navigation", "//en.wikipedia.org/wiki/Special:UserRights", "User rights");
  }
});

// ************************************************Editing scripts*******************************************
// importScript('User:Tim Song/afchelper4.js');
importScript('User:AndyZ/peerreviewer.js'); //[[User:AndyZ/peerreviewer.js]]
importScript('User:Kingpin13/watchlistnotifier.js');
// importScript('User:Cameltrader/Advisor.js');
importScript('User:Mr.Z-man/patrollinks.js');
importScript('User:Smith609/toolbox.js');

// ************************************************Miscellaneous scripts**************************************
importScript('User:Amalthea/userhighlighter.js'); // Highlights admins user and talk pages in blue.

function prefixindex()
{
  mw.util.addPortletLink("p-tb", "//en.wikipedia.org/wiki/Special:Prefixindex/" + mw.config.get('wgPageName'), "Prefix Index");
}
$(prefixindex);

//importScript('User:Writ Keeper/Scripts/SearchNamespace.js'); // Adds a pulldown menu to the quicksearch bar (at the top right) to select which namespace to search in.
// </nowiki>