User:StevenJ81/common.js

From translatewiki.net
Jump to: navigation, search
$(document).ready(function() {
   $('<div class="portal" id="p-wl" role="navigation"><h3>' + (typeof watchlists=='string'?watchlists:'Watchlists') + '</h3><div class="pBody body"></div>').insertAfter("#p-tb");
   mw.util.addPortletLink("p-wl", "//en.wikipedia.org/wiki/Special:Watchlist", "Wikipedia");
   mw.util.addPortletLink("p-wl", "//simple.wikipedia.org/wiki/Special:Watchlist", "Simple English Wikipedia");
   mw.util.addPortletLink("p-wl", "//fr.wikipedia.org/wiki/Special:Watchlist", "Wikipédia");
//   mw.util.addPortletLink("p-wl", "//de.wikipedia.org/wiki/Special:Watchlist", "Wikipedia-de");
   mw.util.addPortletLink("p-wl", "//he.wikipedia.org/wiki/Special:Watchlist", "וויקיפדיה"); 
   mw.util.addPortletLink("p-wl", "//lad.wikipedia.org/wiki/Special:Watchlist", "Vikipedya"); 
   mw.util.addPortletLink("p-wl", "//la.wikipedia.org/wiki/Special:Watchlist", "Vicipædia");
   mw.util.addPortletLink("p-wl", "//jam.wikipedia.org/wiki/Special:Watchlist", "Wikipidia");
   mw.util.addPortletLink("p-wl", "//yi.wikipedia.org/wiki/Special:Watchlist", "וויקיפּעדיע"); 
   mw.util.addPortletLink("p-wl", "//www.wikidata.org/wiki/Special:Watchlist", "Wikidata");
   mw.util.addPortletLink("p-wl", "//meta.wikimedia.org/wiki/Special:Watchlist", "Meta-Wiki");
   mw.util.addPortletLink("p-wl", "//translatewiki.net/wiki/Special:Watchlist", "translatewiki");
//   mw.util.addPortletLink("p-wl", "//commons.wikimedia.org/wiki/Special:Watchlist", "Commons");
//   mw.util.addPortletLink("p-wl", "//www.mediawiki.org/wiki/Special:Watchlist", "MediaWiki");
   mw.util.addPortletLink("p-wl", "//incubator.wikimedia.org/wiki/Special:Watchlist", "Incubator");
});
mw.loader.load('//www.mediawiki.org/w/index.php?title=MediaWiki:Gadget-LocalLiveClock.js&action=raw&ctype=text/javascript&smaxage=21600&maxage=86400' );
mw.loader.load('//en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-oldeditor.js&action=raw&ctype=text/javascript');