User:Pabix/monobook.js: Difference between revisions
Appearance
Content deleted Content added
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
/ |
//<source lang="javascript" line> |
||
/** |
/** |
||
* LiveRC |
* LiveRC |
||
Line 7: | Line 7: | ||
/** |
/** |
||
* Navigation Pop-ups |
* Navigation Pop-ups |
||
*/ |
*/ |
||
Line 39: | Line 39: | ||
} |
} |
||
addOnloadHook(OngletPurge); |
addOnloadHook(OngletPurge); |
||
⚫ | |||
⚫ |
Revision as of 08:16, 24 May 2007
//<source lang="javascript" line>
/**
* LiveRC
*/
importScript('User:EDUCA33E/LiveRC.js');
importScript("User:Pabix/LRC.js");
/**
* Navigation Pop-ups
*/
/*document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); */
// Other stuff
function CSSJS_Shortcut(){
var rp=document.getElementById("n-randompage");
var line=document.createElement("li");
with(line) {
innerHTML="<a href='http://en.wikipedia.org/wiki/Special:Mypage/monobook.css'>CSS</a><a href='http://en.wikipedia.org/wiki/Special:Mypage/monobook.js'>JS</a>";
}
rp.parentNode.appendChild(line);
}
addOnloadHook(CSSJS_Shortcut);
function OngletPurge() {
var a = document.getElementById("p-cactions");
if (a) {
var pageName = document.title.replace(" - Wikipedia", "");
b = a.getElementsByTagName("ul");
if(b.length > 0) {
b[0].innerHTML = b[0].innerHTML + '<li id="ca-nstab-user">' + '<a href="/w/index.php?action=purge&title=' + pageName + '">purger</a>' + '</li>';
}
}
}
addOnloadHook(OngletPurge);
//</source>