MediaWiki:Gadget-hideclearcache.js
Jump to navigation
Jump to search
Note: After publishing, 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: Press Ctrl-F5.
/* Source: https://dev.fandom.com/wiki/MediaWiki:HideClearCache.js?oldid=140538 */
(function () {
if (window.HideClearCacheLoaded || !$('#mw-clearyourcache').length) {
return;
}
window.HideClearCacheLoaded = true;
function click () {
//Hide "show more"
$(this).parent().hide();
//Show the rest of the message
$('#mw-clearyourcache > ul').fadeIn('slow');
}
function init (i18n) {
//Hide most of the message
$('#mw-clearyourcache > ul').hide();
//Add the show text
$('#mw-clearyourcache > p').append(
$('<span>', {
append: [
'[',
$('<a>', {
click: click,
style: 'cursor: pointer;',
text: "show more"
}),
']'
]
})
);
}
})();