Jump to content

User:Kusma/common.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Kusma (talk | contribs) at 15:04, 28 August 2018 (rm wd). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
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.
/* Automate purge confirmation dialog */
if ( mw.config.get( 'wgAction' ) === 'purge' ) {
       $('form[action*="action=purge"]').submit();
}

/*importScript( 'User:Joeytje50/JWB.js/load.js' ); // Backlink: [[User:Joeytje50/JWB.js/load.js]]*/

importScript('User:Dr_pda/prosesize.js');                // [[User:Dr pda/prosesize]]
/* add CSD link */
mw.util.addPortletLink('p-navigation', mw.config.get( 'wgServer' ) + '/wiki/Category:Candidates_for_speedy_deletion', "CAT:CSD");
/* User:MusikAnimal/responseHelper.js */
importScript( 'User:MusikAnimal/responseHelper.js' ); // Backlink: [[User:MusikAnimal/responseHelper.js]]
/* User:King of Hearts/closexfd.js */
importScript( 'User:King of Hearts/closexfd.js' ); // Backlink: [[User:King of Hearts/closexfd.js]]
/* User:Mr.Z-man/closeAFD.js */
importScript( 'User:Mr.Z-man/closeAFD.js' ); // Backlink: [[User:Mr.Z-man/closeAFD.js]]
/** When action=purge is reached, automatically purge the page and then redirect to the actual page.
 * Attempts to imitate the previous behavior for logged-in users.
 */
if ( mw.config.get( 'wgAction' ) === 'purge' ) {
	$( 'form.visualClear' ).submit();
}
importScript('User:Lourdes/PageCuration.js'); // Linkback: [[User:Lourdes/PageCuration.js]]
// 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")
importScript('User:Ale_jrb/Scripts/csdhelper.js');  //[[User:Ale_jrb/Scripts]]