User:Dross/common.js
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.
$(function() {
$('#p-navigation > div ul li:last-child').after('<li id="n-createcompany"><a href="#">Create company page</a></li>');
$('#p-navigation > div ul li:last-child').after('<li id="n-createtld"><a href="#">Create TLD page</a></li>');
});
$('#n-createcompany').onclick = window.location.href("//icannwiki.org/index.php?title=" + prompt("Enter COMPANY page name") + "&action=edit&preload=User:Dross/Company");
$('#n-createtld').onclick = window.location.href("//icannwiki.org/index.php?title=" + prompt("Enter TLD page name", ".com") + "&action=edit&preload=User:Dross/TLD");