User:Y2K/monobook.js
From Homestar Runner Wiki
(Difference between revisions)
(Removed random logo, as the new logo discussion seems to have ended.) |
(only to help me edit without losing content) |
||
Line 18: | Line 18: | ||
if ( window.addEventListener ) window.addEventListener( "load" , addPurgeButton , false ); | if ( window.addEventListener ) window.addEventListener( "load" , addPurgeButton , false ); | ||
else if ( window.attachEvent ) window.attachEvent( "onload", addPurgeButton ); | else if ( window.attachEvent ) window.attachEvent( "onload", addPurgeButton ); | ||
+ | |||
+ | // 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>'); | ||
+ | |||
+ | // settings | ||
+ | var wikEdUsing = "(using [[wikipedia:User:Cacycle/wikEd|wikEd]])"; | ||
+ | var wikEdFullScreenModePreset = true; | ||
+ | var wikEdCloseToolbarPreset = true; | ||
+ | var wikEdButtonsOnTop = false; |
Revision as of 01:01, 25 April 2007
// Adds a purge tab. Found this on Lapper's JS. function addPurgeButton() { var href = document.location.href; { var historyHref = document.getElementById( "ca-history" ).firstChild.href; var div = document.getElementById( "p-cactions" ); var ul = div.getElementsByTagName( "ul" )[0]; var newLi = document.createElement( "li" ); var newA = document.createElement( "a" ); newA.setAttribute( "href" , historyHref.replace( "=history" , "=purge" ) ); var text = document.createTextNode( "purge" ); newA.appendChild( text ); newLi.appendChild( newA ); ul.appendChild( newLi ); } } if ( window.addEventListener ) window.addEventListener( "load" , addPurgeButton , false ); else if ( window.attachEvent ) window.attachEvent( "onload", addPurgeButton ); // 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>'); // settings var wikEdUsing = "(using [[wikipedia:User:Cacycle/wikEd|wikEd]])"; var wikEdFullScreenModePreset = true; var wikEdCloseToolbarPreset = true; var wikEdButtonsOnTop = false;