User:Shereth/monobook.js

//Interiot's javascript edit counter if (document.title.indexOf('User:Interiot/Tool2/code.js') != -1) { mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:Interiot/Tool2/code.js&action=raw&ctype=text/javascript'); }

// Please leave the following line // user:Where/usertabs addOnloadHook(function { if (wgTitle.indexOf("/") != -1 || document.title.indexOf("- History -") != -1)  //no subpages or history     return;

var pagename = encodeURIComponent( wgTitle ); switch (wgCanonicalNamespace) { case "Talk" : mw.util.addPortletLink("p-cactions", wgServer + "/w/index.php?title=Special:Prefixindex&from=" + pagename + "&namespace=1", "Subpages", "", "List of subpages to this page"); break; case "User" : mw.util.addPortletLink("p-cactions", wgServer + "/wiki/Special:Contributions/" + pagename, "Contribs", "ca-contrib", "User contributions"); mw.util.addPortletLink("p-cactions", wgServer + "/w/index.php?title=Special:Prefixindex&from=" + pagename + "&namespace=2", "Userspace", "", "List of pages in this user's userspace"); break; case "User_talk" : mw.util.addPortletLink("p-cactions", wgServer + "/wiki/Special:Contributions/" + pagename, "Contribs", "ca-contrib", "User contributions"); mw.util.addPortletLink("p-cactions", wgServer + "/w/index.php?title=Special:Prefixindex&from=" + pagename + "&namespace=3", "Subpages", "", "List of subpages to this page"); break; default : mw.util.addPortletLink("p-cactions", wgServer + "/w/index.php?title=Special:Prefixindex&from=" + pagename + "&namespace=0", "Subpages", "", "List of subpages to this page"); mw.util.addPortletLink("p-cactions", wgServer + "/w/index.php?title=Special:WhatLinksHere/" + pagename + "&hidelinks=1&hidetrans=1", "Redirects", "", "List of redirects to this page"); mw.util.addPortletLink("p-cactions", wgServer + "/wiki/User:Shereth/Templates", "Templates", "", "List of templates I use");

} });

//