Jump to content

User:Pabix/monobook.js

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Pabix (talk | contribs) at 08:16, 24 May 2007. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
//<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>