MediaWiki:Gadget-purgetab.js
Note: After saving, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
/** * Add purge-tab * * @source: http://www.mediawiki.org/wiki/JQuery_snippets * @rev: 1 */ jQuery( document ).ready( function( $ ) { if ( $( '#ca-purge' ).size() ) { $( '#ca-purge' ).remove(); } if ( wgCanonicalNamespace != 'Special' ) { var target = skin == 'vector' ? 'p-views' : 'p-cactions'; mw.util.addPortletLink( target, wgScript + '?title=' + mw.util.wikiUrlencode( wgPageName ) + '&action=purge', 'Purge', 'ca-purge', 'Purge the server cache of this page', null, $( '#ca-watch' ).length > 0 ? $( '#ca-watch' )[0] : $( '#ca-unwatch' )[0] ); $( '#ca-purge' ).addClass( 'collapsible' ); } if ( wgAction == 'purge' ) { $( '#ca-purge' ).addClass( 'selected' ); } } );