Jump to content

User:StaticVision/monobook.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by StaticVision (talk | contribs) at 16:22, 25 March 2009 (more stuff!!!!!). 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:AzaToth/twinkle.js');
if( typeof( TwinkleConfig ) == 'undefined' ) TwinkleConfig = {}; // DO NOT REMOVE THIS LINE - ALL TWINKLE SETTINGS AFTER THIS
TwinkleConfig.watchRevertedPages			=	[  ];
TwinkleConfig.watchWarnings				=	false;

importScript('User:Gracenotes/rollback.js');
importScript('User:John254/mass rollback.js')


<source lang="javascript">
// This script adds search links to the toolbox. 

addOnloadHook(function () {
    if (wgCanonicalNamespace == "Special")
        return;  // no links for special pages

    var title = wgTitle;
    if (wgCanonicalNamespace != "")
        title = title.replace(/^.*\//, "");  // subpage name only

    var query = encodeURIComponent('"'+title+'" -Wikipedia' ); 
    addPortletLink('p-tb', 'http://www.google.com/search?&q='+query,
                   'Web search', 't-googlesearch', 'Search Google for "'+title+'"', 'W');
    addPortletLink('p-tb', 'http://news.google.com/archivesearch?&as_price=p1&as_src=-newswire+-wire+-presswire+-PR+-press+-release&q='+query,
                   'News search', 't-googlenewssearch', 'Search Google News Archive for "'+title+'"', 'N');
    addPortletLink('p-tb', 'http://books.google.com/books?&as_brr=3&q='+query,
                   'Books search', 't-googlebookssearch', 'Search Google Books for "'+title+'"', 'B');
    addPortletLink('p-tb', 'http://scholar.google.com/scholar?&q='+query,
                   'Scholar search', 't-googlescholarsearch', 'Search Google Scholar for "'+title+'"', 'S');
});

//</source>

importScript('User:Mr.Z-man/rollbackSummary.js');