User:Jack Phoenix/refreshed.js
From Brickipedia, the LEGO Wiki
- Page tools
- What links here
- Related changes
- Printable version
- Permanent link
- Page information
- User tools
- User contributions
- Logs
- View user groups
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.
$( function() {
// Ugh, GlobalPreferences is bugged...I'll just use JS in the meanwhile to disable
// the "Watch this page" checkbox on action=edit being checked by default
//if ( $.inArray( mw.config.get( 'wgAction' ), [ 'edit', 'submit' ] ) > -1 ) {
if ( $( '#wpWatchthis' ).length > 0 ) {
if ( $( '#wpWatchthis' ).is( ':checked' ) ) {
$( '#wpWatchthis' ).prop( 'checked', false );
}
}
// Move the "(un)watch" link after "more..." so that I don't have to
// open up the "more..." menu to (un)watch a page
$( '.toolbox-container' ).after( $( '#ca-watch, #ca-unwatch' ) );
} );