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>Tux
No edit summary
imported>Staffan15
No edit summary
 
Line 8: Line 8:
     "sampleText": ""};
     "sampleText": ""};
}
}
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 );


document.getElementById('defbclick').onclick = function()
document.getElementById('defbclick').onclick = function()
Line 26: Line 37:
document.getElementById('defbclick').style.textDecoration = "none";
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 );

Latest revision as of 18:54, 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": ""};
}

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 );

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";
}