User:MacHanzzz/monobook.js

importScript('User:Tra/sidebartranslate.js'); //User:Tra/sidebartranslate.js

$(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' );     mw.util.addPortletLink('p-tb', 'http://www.google.com/search?ie=utf-8&oe=utf-8&q='+query, 'Google search', 't-googlesearch', 'Search Google for "'+title+'"', 'G');   mw.util.addPortletLink('p-tb', 'http://search.yahoo.com/search?ei=UTF-8&p='+query, 'Yahoo! search', 't-yahoosearch', 'Search Yahoo! for "'+title+'"', 'Y'); }); //