User:Lexein/vector.js

//importScript('Wikipedia:AutoEd/complete.js'); importScript('User:Amalthea/userhighlighter.js'); importScript('User:Dr pda/prosesizebytes.js'); //was User:Dr pda/prosesizebytes.js - now shows bytes //importScript('User:Shubinator/DYKcheck.js'); //DYKcheck tool // Adds toolbox links to search Google web, news archive, books, scholar, and images for the title of the page. $(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, 'Search Gweb', '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, 'Search Gnews', '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, 'Search GBooks', 't-googlebookssearch', 'Search Google Books for "'+title+'"', 'B'); mw.util.addPortletLink('p-tb', 'http://scholar.google.com/scholar?&q='+query, 'Search GScholar', 't-googlescholarsearch', 'Search Google Scholar for "'+title+'"', 'S'); mw.util.addPortletLink('p-tb', 'http://images.google.com/images?q='+query, 'Search GImages', 't-googleimagesearch', 'Search Google Images for "'+title+'"', 'I');

}); // Add WP:Reflinks launcher in the toolbox on left $(function { mw.util.addPortletLink( "p-tb",     // toolbox portlet  "http://toolserver.org/~dispenser/cgi-bin/webreflinks.py/" + mw.config.get('wgPageName')    + "?client=script&citeweb=on&overwrite=simple&limit=70&lang=" + mw.config.get('wgContentLanguage'),  "Reflinks"  // link label )}); // importScript('User:Ohconfucius/script/MOSNUM dates.js');  //User:Ohconfucius/script/MOSNUM dates.js