|
|
| Line 1: |
Line 1: |
| - | // Adds a purge tab. Found this on Lapper's JS. | + | // import [[hrfwiki:User:Y2K/monobook.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="' | | document.write('<script type="text/javascript" src="' |
| - | + 'http://en.wikipedia.org/w/index.php?title=User:Cacycle/diff.js' | + | + 'http://fanstuff.hrwiki.org/index.php?title=User:Y2K/monobook.js' |
| | + '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); | | + '&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;
| |