User:Solar Dragon/global.js
ShoutWiki — express yourself and be heard!
Jump to navigation
Jump to search
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.
// *****************************************************************
// &bot=1 on contribs pages (Special:Contributions/Foo).
// *****************************************************************
function hideRollback() {
var botlink = document.location.href;
if( botlink.indexOf( '?' ) == -1 ) {
botlink += '?bot=1';
} else {
botlink += '&bot=1';
}
addPortletLink( 'p-cactions', botlink, '&bot=1', 'ca-bot' );
}
if( wgCanonicalSpecialPageName == 'Contributions' ) {
addOnloadHook( hideRollback );
}
// Blank the deletion summary if it has some content (such as "content was"...or anything else, really)
// Adapted from http://www.mediawiki.org/wiki/MediaWiki:Gadget-CleanDeleteReasons.js
jQuery( document ).ready( function() {
if ( mw.config.get( 'wgAction' ) == 'delete' ) {
var wpReason = document.getElementById( 'wpReason' );
if ( !wpReason ) {
return;
}
if ( wpReason.value !== '' ) {
wpReason.value = '';
}
}
} );