User:X66x66/monobook.js
From Homestar Runner Wiki
(Difference between revisions)
| Line 1: | Line 1: | ||
| + | // 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>'); | ||
Revision as of 23:44, 10 January 2007
// 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>');
