User:Avicennasis/monobook.js

From Simple English Wikipedia, the free encyclopedia

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)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
// My To-Do Tab!
function todo() {
    alert('todo');
}
 
$( function() {
    mw.util.addPortletLink("p-cactions", wgServer + "/wiki/User:Avicennasis/todo", "Todo", "ca-todo", "Todo list");
});

// Contribs and subpages tabs
 addOnloadHook(function() {
  if (wgTitle.indexOf("/") != -1 || document.title.indexOf("- History -") != -1)  //no subpages or history
     return;
  if (wgCanonicalNamespace == "User" || wgCanonicalNamespace == "User_talk") {
     var username = encodeURIComponent( wgTitle );
     mw.util.addPortletLink("p-cactions", wgServer + "/wiki/Special:Contributions/" + username, "Contribs", "ca-contrib", "User contributions");
     mw.util.addPortletLink("p-cactions", wgServer + "/w/index.php?title=Special:Prefixindex&from=" + username + "&namespace=2", "sub", "", "List of pages in this user's userspace");
  }
});

// [[File:Krinkle_RTRC.js]]
mw.loader.load('https://meta.wikimedia.org/w/index.php?title=User:Krinkle/RTRC.js&action=raw&ctype=text/javascript');

# importScript('User:EhJJ/twinkle.js');
importScript('User:Avicennasis/autopatrol.js');
importScript('User:Avicennasis/enwp.js');