User:Strakhov/common.js
Jump to navigation
Jump to search
Note: After saving, you have to bypass your browser's cache to see the changes. Internet Explorer: press Ctrl-F5, Mozilla: hold down Shift while clicking Reload (or press Ctrl-Shift-R), Opera/Konqueror: press F5, Safari: hold down Shift + Alt while clicking Reload, Chrome: hold down Shift while clicking Reload.
The accompanying .css page for this skin can be added at User:Strakhov/common.css. |
importScript('User:Majora/LicenseReview.js');
importScript('User:Husky/sdsearch.js');
window.acdcFavoriteProperties = [
'P180',
'P6568',
'P170',
];
importScript('MediaWiki:Gadget-TabularImportExport.js') ;
importScript('User:Magnus Manske/sdc_tool.js') ;
importScript('User:Husky/sdsearch.js') ;
importScript('User:Magog the Ogre/cleanup.js');
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:DannyS712/EasyResolve.js&action=raw&ctype=text/javascript');
importScript('User:Rillke/LicenseReview.js');
importScript('MediaWiki:VisualFileChange.js');
importScript('User:Sreejithk2000/JustReplace.js');
importScript('MediaWiki:Gadget-SettingsManager.js');
importScript('MediaWiki:ExCommons.js') ;
window.acdcEnableRemoveFeature = true;
importScript('User:JurgenNL/speedyscript.js');
importScript('MediaWiki:Gadget-GlobalReplace.js');
importScript('User:Jheald/wdcat.js');
( function ( $ ) {
'use strict';
$( function () {
$( '.switcher-container' ).each( function ( i ) {
var activeElement, $showRadio, $showAllRadio;
var elements = [], container = this;
var radioName = 'switcher-' + i;
$( this ).children().each( function () {
var self = this;
var $labelContainer = $( this ).find( '.switcher-label' );
var $labelText = $labelContainer.contents();
if ( !$labelText.length ) {
return;
}
elements.push( this );
$showRadio = $( '<input type="radio" />' ).attr( 'name', radioName ).click( function () {
$( activeElement ).hide();
$( self ).show();
activeElement = self;
} );
$( '<label style="display:block"></label>' ).append( $showRadio ).append( $labelText ).appendTo( container );
if ( !activeElement ) {
activeElement = this;
$showRadio.prop( 'checked', true );
} else if ( $labelContainer.is( '[data-switcher-default]' ) ) {
$showRadio.click();
} else {
$( this ).hide();
}
$labelContainer.remove();
} );
if ( elements.length > 1 ) {
$showAllRadio = $( '<input type="radio" />' ).attr( 'name', radioName ).click( function () {
$( elements ).show();
activeElement = elements;
} );
$( '<label style="display:block">Show all</label>' ).prepend( $showAllRadio ).appendTo( container );
} else if ( elements.length === 1 ) {
$showRadio.remove();
}
} );
} );
} )( jQuery );
//<nowiki>
//catALot///////////////////////////////////////
////////// Cat-a-lot user preferences //////////
window.catALotPrefs = {"disambig_category":"Disambiguation","redir_category":"Category redirects","watchlist":"preferences","minor":false,"editpages":true,"docleanup":false,"subcatcount":50,"uncat":true,"button":true};
////////////////////////////////////catALotEnd//
//</nowiki>