User:X66x66/monobook.js
From Homestar Runner Wiki
Note: After saving, you may have to bypass your browser's cache to see the changes.
- Mozilla / Firefox: hold down Shift while clicking Reload, or press Ctrl-Shift-R (Cmd-Shift-R on Apple Mac)
- Safari: press Cmd-Option-E
- IE: hold Ctrl while clicking Refresh, or press Ctrl-F5
- Konqueror: simply click the Reload button, or press F5
- Opera users may need to completely clear their cache in Tools→Preferences.
// generate a random logo (only works in Firefox)
// started by me, fixed by Phlip
function changelogo() {
var logos = new Array(
"http://www.hrwiki.org/images/3/36/Logo_Redesign_Almost_Everybody.png",
"http://www.hrwiki.org/images/thumb/b/ba/Logo_Redesign_Basement.png/150px-Logo_Redesign_Basement.png",
"http://www.hrwiki.org/images/0/05/Logo_Redesign_Black_Background.png",
"http://www.hrwiki.org/images/7/7d/Logo_Redesign_Current_Updated.gif",
"http://www.hrwiki.org/images/thumb/3/38/Logo_Redesign_Edit_Link.png/150px-Logo_Redesign_Edit_Link.png",
"http://www.hrwiki.org/images/2/24/Logo_Redesign_Encyclopedia.png",
"http://www.hrwiki.org/images/thumb/7/74/Logo_Redesign_Everybody_Everybody.png/150px-Logo_Redesign_Everybody_Everybody.png",
"http://www.hrwiki.org/images/thumb/2/21/Puzzle_FCUSA.PNG/150px-Puzzle_FCUSA.PNG",
"http://www.hrwiki.org/images/thumb/8/8e/Logo_Redesign_Field.png/150px-Logo_Redesign_Field.png",
"http://www.hrwiki.org/images/b/bb/Logo_Redesign_Homestar_and_SB.gif",
"http://www.hrwiki.org/images/a/a8/Logo_Redesign_sbhrfield.png",
"http://www.hrwiki.org/images/thumb/d/d0/Logo_Redesign_Homestar_Front.PNG/150px-Logo_Redesign_Homestar_Front.PNG",
"http://www.hrwiki.org/images/7/74/Logo_Redesign_Homestar_Star.png",
"http://www.hrwiki.org/images/0/0d/Dotjoey.png",
"http://www.hrwiki.org/images/c/c5/Logo_Redesign_FullBody_Blur.gif",
"http://www.hrwiki.org/images/1/15/Logo_Redesign_Lappy.gif",
"http://www.hrwiki.org/images/4/42/Logo_Redesign_Official_Logo_Homestar.png",
"http://www.hrwiki.org/images/2/20/hrwlogoidea-fixed.png",
"http://www.hrwiki.org/images/3/36/Logo_Redesign_Old_New_Star.gif",
"http://www.hrwiki.org/images/thumb/f/f7/Logo_Redesign_Puzzle.png/150px-Logo_Redesign_Puzzle.png",
"http://www.hrwiki.org/images/thumb/3/36/Logo_Redesign_Running_Intro.png/150px-Logo_Redesign_Running_Intro.png",
"http://www.hrwiki.org/images/7/70/Logo_Redesign_Then_and_Now.png",
"http://www.hrwiki.org/images/thumb/9/93/Logo_Redesign_Weclome_Back.png/150px-Logo_Redesign_Weclome_Back.png",
"http://www.hrwiki.org/images/d/d5/Logo_Redesign_WikiGlobe.png",
"http://www.hrwiki.org/images/5/51/Logo_Redesign_World_LighterGrad.png"
);
var i = Math.floor(Math.random() * logos.length);
document.getElementById('p-logo').getElementsByTagName('a')[0].style.setProperty("background-image", "url(" + logos[i] + ")", "important");
}
addOnloadHook(changelogo);
// installation of the wikEd editing page extension
// install [[User:Cacycle/diff]] text diff code
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:Cacycle/diff.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
// install [[User:Pilaf/Live_Preview]] page preview tool
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:Pilaf/livepreview.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
// install [[User:Mboverload/RegExTypoFix|RegExTypoFix]] common typo fixer
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:Cacycle/RegExTypoFix.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
// install [[User:Cacycle/wikEd international]] translation here
// install [[User:Cacycle/wikEd]] editing page extension
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
