Welcome to the Club Penguin Wiki! Log in or Create an account to join the community!
User:Staffan15/monobook.js: Difference between revisions
Jump to navigation
Jump to search
imported>Staffan15 No edit summary |
imported>Tux No edit summary |
||
Line 26: | Line 26: | ||
document.getElementById('defbclick').style.textDecoration = "none"; | document.getElementById('defbclick').style.textDecoration = "none"; | ||
} | } | ||
function showStuff() | function showStuff() | ||
Line 37: | Line 35: | ||
} | } | ||
} | } | ||
addOnloadHook( showStuff ); |
Revision as of 18:33, 28 November 2010
if (wgNamespaceNumber == 3)
{
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://www.euroncap.com/img/warning.png",
"speedTip": "Warn User",
"tagOpen": "{{Warning}}\n\n--~~",
"tagClose": "~~",
"sampleText": ""};
}
document.getElementById('defbclick').onclick = function()
{
document.getElementById('defbclick').style.display = "none";
document.getElementById('defaclick').style.display = "";
}
document.getElementById('defbclick').onmouseover = function()
{
document.getElementById('defbclick').style.cursor = "pointer";
document.getElementById('defbclick').style.textDecoration = "underline";
}
document.getElementById('defbclick').onmouseout = function()
{
document.getElementById('defbclick').style.cursor = "default";
document.getElementById('defbclick').style.textDecoration = "none";
}
function showStuff()
{
$('#p-cactions > .pBody > ul').append('<li id="ca-skins"><a href="/index.php?title='+encodeURIComponent(wgPageName)+'&useskin=vector">vector</a></li>');
if (wgNamespaceNumber == 2)
{
$('#link_box > tr > td > ul').append('<li><a rel="nofollow" href="/wiki/Special:Editcount/'+encodeURIComponent(wgTitle)+'">Editcount</a></li>');
}
}
addOnloadHook( showStuff );