User:Fuhghettaboutit/common.js

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
importScript('User:Writ Keeper/Scripts/orangeBar.js'); //Linkback: [[User:Writ Keeper/Scripts/orangeBar.js]]
mw.loader.load( "https://meta.wikimedia.org/w/index.php?title=User:Zhaofeng_Li/Reflinks.js&action=raw&ctype=text/javascript" );
importStylesheet('MediaWiki:Gadget-WatchlistBase.css'); // Linkback: [[MediaWiki:Gadget-WatchlistBase.css]]
mw.loader.load( '//de.wikipedia.org/w/index.php?title=Benutzer:TMg/autoFormatter.js&action=raw&ctype=text/javascript' );

// Wait till the page is ready
$(function() { 
    // remove ugly styles from buttons
    $(".oo-ui-buttonInputWidget").removeClass("oo-ui-buttonInputWidget");
    $(".oo-ui-buttonElement-button").removeClass("oo-ui-buttonElement-button");
    // and checkboxes:
    $(".oo-ui-checkboxInputWidget").removeClass("oo-ui-checkboxInputWidget");
    // remove inflated field margins:
    $(".oo-ui-fieldLayout-header").removeClass("oo-ui-fieldLayout-header");
    
    // When on edit page, reorder some elements
    if (
    	$.inArray( mw.config.get( 'wgAction' ), [ 'edit', 'submit' ] ) !== -1 ||
    	mw.config.get( 'wgCanonicalSpecialPageName' ) === 'Upload'
    ) {
    	$( '.mw-summary-preview' ).after( $('.editButtons')[0] );
    	window.charinsertDontMove = true; // Keep it below
    	// or when it's already moved up, movet it down again.
    	$('#editpage-specialchars').appendTo( $('.editOptions')[0] );
    }
} );
mw.loader.load( '/w/index.php?title=User:Evad37/duplinks-alt.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Evad37/duplinks-alt.js]]