User:Micke/monobook.js

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