User:Aquadrizzt/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.
/*<nowiki>*/
addOnloadHook(function() {
addPortletLink('p-tb','http://wiki.gw2.org.cn/wiki/User:JonTheMon','Jon');
addPortletLink('p-tb','http://wiki.gw2.org.cn/wiki/User:Pling','Pling');
addPortletLink('p-tb','http://wiki.gw2.org.cn/wiki/User:Poke','Poke');
addPortletLink('p-tb','http://wiki.gw2.org.cn/wiki/User:Tanetris','Tanetris');
/**
* Format : addTopLink ('link label', 'link url');
**/
addTopLink('Sandbox', '/wiki/User:Aquadrizzt/Sandbox');
addTopLink('Infoboxes', '/wiki/Category:Infobox templates');
addTopLink('New pages', '/wiki/Special:NewPages');
addTopLink('New files', '/wiki/Special:NewFiles');
addTopLink('New users', '/wiki/Special:Log/newusers');
addTopLink('Untagged files', '/index.php?title=Special:UncategorizedFiles');
addTopLink('Maintenance', '/wiki/Category:Maintenance');
addTopLink('Colors', '/wiki/Guild Wars 2 Wiki:Color schemes');
addTopLink('Projects', '/wiki/Guild Wars 2 Wiki:Projects');
addTopLink('JS', '/wiki/User:Aquadrizzt/monobook.js');
addTopLink('CSS', '/wiki/User:Aquadrizzt/monobook.css');
});
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);
}
}
if (mwCustomEditButtons) {
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://wiki.gw2.org.cn/images/2/2d/User_Aquadrizzt_toolbar_delete.png",
"speedTip": "Delete",
"tagOpen": "{{delete|",
"tagClose": "}}",
"sampleText": "reason"};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://wiki.gw2.org.cn/images/e/e2/Button_bold.png",
"speedTip": "Strike",
"tagOpen": "<s>",
"tagClose": "</s>",
"sampleText": "Strike-through text"};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://wiki.gw2.org.cn/images/e/e2/Button_bold.png",
"speedTip": "Line break",
"tagOpen": "<br />",
"tagClose": "",
"sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://wiki.gw2.org.cn/images/e/e2/Button_bold.png",
"speedTip": "Comment visible only for editors",
"tagOpen": "<!-- ",
"tagClose": " -->",
"sampleText": "Insert comment here"}
}
/*</nowiki>*/