User:Shadow Runner/monobook.js
From Guild Wars 2 Wiki
Jump to navigationJump to search
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.
/**
* Links in "user row"
**/
function addTopLink(label, url) {
var userpage = document.getElementById('pt-userpage');
if (userpage) {
var link = document.createElement('a');
link.href = url;
link.appendChild(document.createTextNode(label));
var li = document.createElement('li');
li.appendChild(link);
userpage.parentNode.insertBefore(li, userpage.parentNode.firstChild);
}
}
addOnloadHook(function() {
/**
* Format : addTopLink ('link label', 'link url');
**/
addTopLink('Sandbox', '/wiki/User:Shadow_Runner/Sandbox');
addTopLink('ip edits', '/index.php?title=Special:RecentChanges&hideliu=1');
addTopLink('New files', '/wiki/Special:NewFiles');
addTopLink('Untagged files', '/index.php?title=Special:UncategorizedFiles');
addTopLink('Monobook.css', '/wiki/User:Shadow_Runner/monobook.css');
addTopLink('Monobook.js', '/wiki/User:Shadow_Runner/monobook.js');
addTopLink('Plings', '/wiki/User_talk:Pling');
addTopLink('Pokes', '/wiki/User_talk:Poke');
addTopLink('Cyans', '/wiki/User_talk:Cyan_Light');
addTopLink('Oneshots', '/wiki/User_talk:Oneshot');
addTopLink('Practices', '/wiki/Guild_Wars_2_Wiki:Practices_and_processes');
addTopLink('RfC', '/wiki/Guild_Wars_2_Wiki:Requests_for_comment');
});
// install [[Wikipedia:User:Cacycle/wikEd]] in-browser text editor
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js'
+ '&action=raw&ctype=text/javascript"></' + 'script>');