Welcome to the Club Penguin Wiki! Log in or Create an account to join the community!

User:Staffan15/monobook.js: Difference between revisions

From the Club Penguin Wiki, the free, editable encyclopedia about Club Penguin
Jump to navigation Jump to search
imported>Staffan15
Created page with "if (wgNamespaceNumber == 3) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://www.euroncap.com/img/warning.png", "speedTip": "Warn User", ..."
 
imported>Staffan15
No edit summary
Line 27: Line 27:
}
}


addOnloadHook(showStuff);
addOnloadHook( showStuff );


function showStuff()
function showStuff()

Revision as of 19:05, 1 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";
}

addOnloadHook( showStuff );

function showStuff()
{
$('<li id="ca-skins"><a href="/index.php?title='+encodeURIComponent(wgPageName)+'&useskin=vector">vector</a></li>').appendTo('#p-cactions > .pBody > ul');
if (wgNamespaceNumber == 2)
{
$('<li><a rel="nofollow" href="/wiki/Special:Editcount/'+encodeURIComponent(wgTitle)+'">Editcount</a></li>').appendTo('#link_box > tr > td > ul');
}
}