User:Trizek (WMF)/common.js

importScript( 'User:JDrewniak_(WMF)/searchThumbs.js' );

$( function {	mw.loader.using( 'mediawiki.util' ).done( function  { var $body = $( 'body' ), enabled = false; if ( $body.is( '.mw-special-Recentchanges, .mw-special-Recentchangeslinked, .mw-special-Watchlist' ) ) { if ( mw.user.options.get( 'rcenhancedfilters' ) ) { if ( $body.is( '.mw-special-Recentchanges, .mw-special-Recentchangeslinked' ) ) { enabled = true; } else if ( $body.is ('.mw-special-Watchlist' ) ) { enabled = ( mw.util.getParamValue( 'rcfilters' ) === '1' ); }			}			$body.addClass( enabled ? 'mw-rcfilters-enabled' : 'mw-rcfilters-disabled' ); }		mw.loader.load( 'https://en.wikipedia.org/w/index.php?title=User:Mattflaschen-WMF/MediaWiki:Gadget-WatchlistBase.css&action=raw&ctype=text/css', 'text/css' ); var skin = mw.config.get( 'skin' ); if ( skin === 'vector' ) { mw.loader.load( 'https://en.wikipedia.org/w/index.php?title=User:Mattflaschen-WMF/MediaWiki:Gadget-WatchlistGreenIndicators.css&action=raw&ctype=text/css', 'text/css' ); } else if ( skin === 'monobook' || skin === 'modern' ) { mw.loader.load( 'https://en.wikipedia.org/w/index.php?title=User:Mattflaschen-WMF/MediaWiki:Gadget-WatchlistGreenIndicatorsMono.css&action=raw&ctype=text/css', 'text/css' ); }		mw.loader.load( 'https://en.wikipedia.org/w/index.php?title=User:Mattflaschen-WMF/MediaWiki:Gadget-WatchlistChangesBold.css&action=raw&ctype=text/css', 'text/css' ); } ); } );