User:VS6507/monobook.js

// This script adds search links to the toolbox. addOnloadHook(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, 'Web search', '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, 'News search', 't-googlenewssearch', 'Search Google News Archive for "'+title+'"', 'N');   mw.util.addPortletLink('p-tb', 'http://books.google.com/books?&as_brr=0&as_pub=-icon&q='+query, 'Books search', 't-googlebookssearch', 'Search Google Books for "'+title+'"', 'B');   mw.util.addPortletLink('p-tb', 'http://scholar.google.com/scholar?&q='+query, 'Scholar search', 't-googlescholarsearch', 'Search Google Scholar for "'+title+'"', 'S');   mw.util.addPortletLink('p-tb', 'http://images.google.com/images?q='+query, 'Images search', 't-googleimagesearch', 'Search Google Images for "'+title+'"', 'I'); }); //

//See WikiProject User scripts/Scripts/Show last diff // Originally based on http://en.wikipedia.org/w/index.php?title=User:JesseW/monobook.js&oldid=20755510 // addLastDiff function addLastDiff {   mw.util.addPortletLink('p-cactions', 'http://en.wikipedia.org/w/index.php?title=' + mw.config.get('wgPageName') + "&diff=cur&oldid=prev", 'last', 'ca-last', 'Show most recent diff'); } addOnloadHook(addLastDiff); //

importScript('Wikipedia:WikiProject_User_scripts/Scripts/AutoAFD.js');

/**** quick image delete ****/ importScript('User:Howcheng/quickimgdelete.js');

/**** Images for deletion thumbnails ****/ importScript("User:Ilmari Karonen/ifdthumbnails.js");

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

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

// Auto-delete importScript('User:MZMcBride/delete.js')

//Dashboard function addDash { loLogoutNode = document.getElementById("pt-logout"); loDashNode = mw.util.addPortletLink( "p-personal"      , mw.config.get('wgServer') + mw.config.get('wgScriptPath') + "/index.php?title=Template:Dashboard&action=purge"        , "dashboard"        , "pt-dashboard"        , "Link to dashboard"        , "d"        , loLogoutNode ); } addOnloadHook(addDash);