User:Micke-sv/monobook.js

// Länkar till olika sidor // Modifierad http://en.wikipedia.org/wiki/Wikipedia:WikiProject_User_scripts/Scripts/Add_purge_to_tabs addOnloadHook(function {    mw.util.addPortletLink('p-navigation', '', '-');        mw.util.addPortletLink('p-navigation', '/wiki/commons:Special:Watchlist', 'commons');    mw.util.addPortletLink('p-navigation', '/wiki/m:Special:Watchlist', 'meta');    mw.util.addPortletLink('p-navigation', '/wiki/sv:Special:Watchlist', 'svwiki');    mw.util.addPortletLink('p-navigation', 'irc://irc.freenode.net/wikipedia-sv', 'IRC');    mw.util.addPortletLink('p-navigation', 'http://www.ip-adress.com/', 'ip-adress.com'); }); // // Sökmotorlänkar //http://en.wikipedia.org/wiki/Wikipedia:WikiProject_User_scripts/Scripts/Google_link 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+'"' );     mw.util.addPortletLink('p-cactions', 'http://www.google.com/search?ie=utf-8&oe=utf-8&q='+query, 'google', 't-googlesearch', 'Search Google for "'+title+'"', 'G'); }); //