User:Melos/global.js
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.
/**
* Forces left-to-right layout and editing on RTL wikis.
* @see https://meta.wikimedia.org/wiki/Force_ltr
* @update-token [[File:pathoschild/forceltr.js]]
*/
//mw.loader.load('//tools-static.wmflabs.org/meta/scripts/pathoschild.forceltr.js');
/* mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Mike.lifeguard/removeSpam.js&action=raw&ctype=text/javascript');
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Erwin/stewardlinks.js&action=raw&ctype=text/javascript');
mw.loader.load('//meta.wikimedia.org/w/index.php?title=MediaWiki:Gadget-markblocked.js&action=raw&ctype=text/javascript');
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Hoo_man/useful_links.js&action=raw&ctype=text/javascript'); */
if ( $.inArray( mw.config.get("wgDBname"), ['itwiki', 'enwiki'] ) === -1 ) {
mw.loader.load('//en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-popups.js&action=raw&ctype=text/javascript');
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:WhitePhosphorus/js/active_sysops.js&oldid=22758723&action=raw&ctype=text/javascript');
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:WhitePhosphorus/js/GS_Rationale.js&oldid=25125133&action=raw&ctype=text/javascript');
}
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Xiplus/TwinkleGlobal/load.js&oldid=25879128&action=raw&ctype=text/javascript');
/* *** Hidden RB *** */
$( function() {
mw.user.getRights().then( function ( rights ) {
// Make sure the user has the 'markbotedits' right
if ( rights.includes( "markbotedits" ) || rights.includes( "bot" ) ) {
inserisci();
}
} );
function inserisci(){
if (
mw.config.get( 'wgCanonicalSpecialPageName' ) === 'Contributions' &&
!mw.util.getParamValue( 'bot' )
) {
var sep = window.location.href.indexOf( 'index.php' ) !== -1 ? '&' : '?',
$link = $( '<a title="Rollback nascosti">Rollback nascosti</a>' )
.attr( 'href', window.location.href + sep + 'bot=1' ),
$container = $( '<div>' ).append( $link );
mw.util.addSubtitle( $container.get( 0 ) );
}
}
} );
//Script for redirecting Special:CentralAuth pages on all wikis to the metawiki one
//by [[User:Tks4Fish]]
if( (mw.config.get('wgCanonicalSpecialPageName') == 'CentralAuth') && (mw.config.get('wgDBname') != 'metawiki') )
{
window.location.replace('//meta.wikimedia.org/wiki/Special:CentralAuth/' + mw.config.get('wgRelevantUserName') );
}