|
|
Line 270: |
Line 270: |
| importStylesheetURI("http://zeldawiki.org/User:Matt/RC_Colors.css" + "&ctype=text/css&action=raw"); | | importStylesheetURI("http://zeldawiki.org/User:Matt/RC_Colors.css" + "&ctype=text/css&action=raw"); |
| // | | // |
|
| |
| // --------------------------------------------------------
| |
| // addPurge
| |
| // adds a "purge" tab (after "watch")
| |
| // --------------------------------------------------------
| |
| addOnloadHook(function () { if (wgAction != 'edit' && wgCanonicalNamespace != 'Special' && wgAction != 'history' && wgAction != 'delete' && wgAction != 'watch' && wgAction != 'unwatch' && wgAction != 'protect' && wgAction != 'markpatrolled' && wgAction != 'rollback' && document.URL.indexOf('diff=') <= 0 && document.URL.indexOf('oldid=') <=0) { var hist; var url; if (!(hist = document.getElementById('ca-history') )) return; if (!(url = hist.getElementsByTagName('a')[0] )) return; if (!(url = url.href )) return; addPortletLink('p-cactions', url.replace(/([?&]action=)history([&#]|$)/, '$1purge$2'), 'purge', 'ca-purge', 'Purge server cache for this page', '0'); } });
| |
|
| |
|
| |
|
| |
|
| /*gotten from http://grifkuba.org/MotherEarthBoundWiki/index.php?title=MediaWiki:Common.js on 11/1/2010*/ | | /*gotten from http://grifkuba.org/MotherEarthBoundWiki/index.php?title=MediaWiki:Common.js on 11/1/2010*/ |
Line 392: |
Line 384: |
|
| |
|
| addOnloadHook(Projectlinks); | | addOnloadHook(Projectlinks); |
|
| |
| importScript('MediaWiki:Gadget-HotCat.js');
| |
| //
| |
|
| |
| // install [[Wikipedia:User:Cacycle/wikEd]] in-browser text editor
| |
| importScriptURI('//en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js'
| |
| + '&action=raw&ctype=text/javascript');
| |
|
| |
| //syntax highlighter
| |
| mw.loader.load('//www.mediawiki.org/w/index.php?title=MediaWiki:Gadget-DotsSyntaxHighlighter.js&action=raw&ctype=application/javascript&smaxage=21600&maxage=86400');
| |
|
| |
| /*</pre>
| |