Jump to content
Wikimedia Meta-Wiki

User:Micke/monobook.js

From Meta, a Wikimedia project coordination wiki
This is an archived version of this page, as edited by Micke (talk | contribs) at 11:05, 13 June 2008. It may differ significantly from the current version .

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
 // Länkar till olika sidor
 // Modifierad http://en.wikipedia.org/wiki/Wikipedia:WikiProject_User_scripts/Scripts/Add_purge_to_tabs
 addOnloadHook(function(){
 addPortletLink('p-navigation','','-------------------------');
 addPortletLink('p-navigation','/wiki/commons:Special:Watchlist','commons');
 addPortletLink('p-navigation','/wiki/en:Special:Watchlist','enwiki');
 addPortletLink('p-navigation','/wiki/sv:Special:Watchlist','svwiki');
 addPortletLink('p-navigation','/wiki/se:chapter:Special:Watchlist','wikimedia sverige');
 addPortletLink('p-navigation','/wiki/n:sv: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

 addOnloadHook(function(){
 if(wgCanonicalNamespace=="Special")
 return;// no links for special pages

 vartitle=wgTitle;
 if(wgCanonicalNamespace!="")
 title=title.replace(/^.*\//,"");// subpage name only

 varquery=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');
 });

 //

AltStyle によって変換されたページ (->オリジナル) /