User:The-Pope/vector.js

importScript('User:Fox Wilson/delsort.js'); // Deletion sorting script WP:FWDS

// Adds toolbox links to search Google web, news archive, books, scholar, and images for the title of the page. 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.au/search?&q='+query, 'Web search', 't-googlesearch', 'Search Google for "'+title+'"', 'W');   mw.util.addPortletLink('p-tb', 'http://www.google.com.au/search?&tbm=nws&tbs=ar:1&q='+query, 'News search', 't-googlenewssearch', 'Search Google News Archive for "'+title+'"', 'N');   mw.util.addPortletLink('p-tb', 'http://www.google.com.au/search?q="'+title+'" -Wikipedia -inpublisher:icon&btnG=Search+Books&tbm=bks&tbo=1', 'Books search', 't-googlebookssearch', 'Search Google Books for "'+title+'"', 'B');   mw.util.addPortletLink('p-tb', 'http://scholar.google.com.au/scholar?&q='+query, 'Scholar search', 't-googlescholarsearch', 'Search Google Scholar for "'+title+'"', 'S');   mw.util.addPortletLink('p-tb', 'http://images.google.com.au/images?q='+query, 'Images search', 't-googleimagesearch', 'Search Google Images for "'+title+'"', 'I'); });