Jump to content

User:Bradv/modern.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.
importScript('User:Bradv/sprint.js');
importScript('User:Bradv/splitpreview.js');

importScript('User:AzaToth/twinkle.js');
TwinkleConfig = {
        summaryAd                       :       "",
        deletionSummaryAd               :       "",
        protectionSummaryAd             :       ""
};

importScript('User:Ioeth/friendly.js');
FriendlyConfig = {
        summaryAd                       :       ""
};

importScript('user:js/watchlist.js')
importScript('User:Mr.Z-man/patrollinks.js');       //Patrol links on new pages



//Wikipedia:WikiProject User scripts/Scripts/Search links - This script adds search links to the toolbox. 
$(function () {
    if (mw.config.get('wgCanonicalNamespace') == "Special")
        return;  // no links for special pages
    var title = mw.config.get('wgTitle');
    if (mw.config.get('wgCanonicalNamespace') != "")
        title = title.replace(/^.*\//, "");  // subpage name only
    var query = encodeURIComponent('"'+title+'" -Wikipedia' ); 
    mw.util.addPortletLink('p-tb', 'http://www.google.com/search?&q='+query,
                   'Google', 't-googlesearch', 'Search Google for "'+title+'"', 'W');
    mw.util.addPortletLink('p-tb', 'http://news.google.com/archivesearch?&as_price=p1&as_src=-newswire+-wire+-presswire+-PR+-press+-release&q='+query,
                   'Google News', 't-googlenewssearch', 'Search Google News Archive for "'+title+'"', 'N');
    mw.util.addPortletLink('p-tb', 'http://books.google.com/books?&as_brr=3&q='+query,
                   'Google Books', 't-googlebookssearch', 'Search Google Books for "'+title+'"', 'B');
    mw.util.addPortletLink('p-tb', 'http://scholar.google.com/scholar?&q='+query,
                   'Google Scholar', 't-googlescholarsearch', 'Search Google Scholar for "'+title+'"', 'S');
});
 
importScript('User:Ais523/topcontrib.js'); // [[User:Ais523/topcontrib.js]]


//### old stuff ###
  //importScript('User:Lupin/recent2.js');              //Monitor recent changes / watchlist - only works with monobook
  //importScript('User:Ais523/watchlistnotifier.js');   //Notifies of changes to watchlist at top of page
  //importScript('User:Tra/userwatchlist.js');          //[[User:Tra/userwatchlist.js]] - User watchlist
  //importScript('User:Bradv/catlist.js');
  //importScript('User:Bradv/NewPagePatrol.js');        //Forked from TheJosh in order to ignore redirects
  //importScript('User:TheJosh/Scripts/RecentChangesPatrol.js');