User:AzaToth/twinkle.js
Appearance
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. This code will be executed when previewing this page. |
![]() | This user script seems to have a documentation page at User:AzaToth/twinkle. |
/* Some elements for the Twinkle menu in vector
*/
var pTwinkle = 'p-cactions';
if( skin == 'vector' && typeof $j != 'undefined' ) {
var newmenu = newVectorMenu( "p-twinkle", "TW" );
pTwinkle = 'p-twinkle';
appendCSS( "div.extraMenu { background-position: 90% 50%;} div.extraMenu h5 a { padding-left: 0.4em; padding-right: 0.4em; width:auto; } div.extraMenu h5 a span {display:inline-block; font-size:0.8em; height:2.5em; font-weight: normal; padding-top: 1.25em; margin-right:14px; }" );
$j(document).ready(function() {
newmenu.insertBefore( $j('#p-search') );
});
}
function newVectorMenu( ID, title ) {
if( ! ID ) return;
var div = $j('<div id="' + ID + '" class="vectorMenu extraMenu emptyPortlet" ></div>');
var h5 = $j('<h5></h5>')
var a = $j('<a href="#"></a>');
if( title ) a.append( $j('<span>' + title + '</span>') );
h5.append( a ); div.append( h5 );
$j('<div class="menu"><ul lang="en" xml:lang="en"></ul></div>').appendTo(div);
return div;
}
importScript('User:AzaToth/morebits.js');
importScript('User:AzaToth/twinklefluff.js');
importScript('User:AzaToth/twinklewarn.js');
importScript('User:AzaToth/twinklearv.js');
importScript('User:AzaToth/twinklespeedy.js');
importScript('User:AzaToth/twinklediff.js');
importScript('User:AzaToth/twinkleprotect.js');
importScript('User:AzaToth/twinkleprod.js');
importScript('User:AzaToth/twinklexfd.js');
importScript('User:AzaToth/twinkleimage.js');
importScript('User:AzaToth/twinkleunlink.js');
importScript('User:AzaToth/twinkledelimages.js');
importScript('User:AzaToth/twinkledeprod.js');
importScript('User:AzaToth/twinklebatchdelete.js');
importScript('User:AzaToth/twinklebatchprotect.js');
importScript('User:AzaToth/twinkleimagetraverse.js');
importScript('User:AzaToth/twinklebatchundelete.js');