Usuario:Lyrithya/monobook.js
Ir a la navegación
Ir a la búsqueda
Nota: Después de publicar, quizás necesite actualizar la caché de su navegador para ver los cambios.
- Firefox/Safari: Mantenga presionada la tecla Shift mientras pulsa el botón Actualizar, o presiona Ctrl+F5 o Ctrl+R (⌘+R en Mac)
- Google Chrome: presione Ctrl+Shift+R (⌘+Shift+R en Mac)
- Internet Explorer/Edge: mantenga presionada Ctrl mientras pulsa Actualizar, o presione Ctrl+F5
- Opera: Presiona Ctrl+F5.
//<nowiki>
importScriptURI( 'http://commons.wikimedia.org/w/index.php?title=MediaWiki:Gadget-HotCat.js&action=raw&ctype=text/javascript' );
importScriptURI( 'http://en.illogicopedia.org/index.php?title=MediaWiki:Gadget-UTCLiveClock.js&action=raw&ctype=text/javascript' );
importScriptURI( 'http://uncyclopedia.wikia.com/index.php?title=User:Lyrithya/ajaxwatch.js&action=raw&ctype=text/javascript' );
importScriptURI( 'http://uncyclopedia.wikia.com/index.php?title=User:Lyrithya/share.js&action=raw&ctype=text/javascript' );
importScriptURI( 'http://uncyclopedia.wikia.com/index.php?title=User:Lyrithya/dropdown.js&action=raw&ctype=text/javascript' );
importScriptURI( 'http://uncyclopedia.wikia.com/index.php?title=User:Lyrithya/vectortabs.js&action=raw&ctype=text/javascript' );
importScript('Usuario:Lyrithya/popups.js');
var oldEditsectionLinks = true;
popupStructure = 'menus';
/*
* Trivial plugin for hiding the portals in the sidebar panel
* Written by Silent Penguin
*/
(function( $ ){
$.fn.hidingToolbox = function(options) {
var settings = {
'initClosed' : true,
'duration' : 200,
'contentSelector' : '.pBody',
'handleSelector' : 'h5',
'slide': function (visible) { if(visible){ this.parent().addClass('hidden').removeClass('visible') } else { this.parent().addClass('visible').removeClass('hidden') } }
};
//where the magic happens
var handleClick = function (){
var handle = $(this).parent().find(settings['contentSelector']);
var visible = handle.is(':visible')
handle[ visible
? 'slideUp'
: 'slideDown' ](settings['duration'], function () {
return settings['slide'].apply($(this),[visible]);
});
}
var handleHoverIn = function () {
$(this).addClass('hover');
}
var handleHoverOut = function () {
$(this).removeClass('hover');
}
var length = this.length;
if ( typeof(options) == typeof(Object()) ) {
$.extend( settings, options );
}
// If options exist and is the right type, lets merge them with our default settings
if ( typeof(settings['initClosed']) == typeof(Array()) &&
!settings['initClosed'].length) {
settings['initClosed'] = true;
}
// if our init closed is an empty array, define it to the default again.
return this.each(function(key) {
var self = $(this);
self.find(settings['handleSelector'])
.hover(handleHoverIn, handleHoverOut) //detect hovers, style accordingly
.click(handleClick); //click event to open and close
var initClosed = typeof(settings['initClosed']) == typeof(Array())
? settings['initClosed'][Math.min(key, length - 1)]
: settings['initClosed'];
self.find(settings['contentSelector'])[initClosed ? 'hide' : 'show']().parent().addClass(initClosed ? 'hidden' : 'visible' );
});
};
})( jQuery );
jQuery(document).ready(function(){
jQuery('.generated-sidebar:not(#p-navigation), #p-tb, #p-wikicities-nav, #p-lang').hidingToolbox({'initClosed':[true, true, false, false]});
jQuery('#column-one').addClass('collapsible_pile');
});
//</nowiki>