User:Wedkarski/global.js

// ChatHacks importScriptPage('User:Vuh/ChatHacks.js', 'vuh'); importScriptPage('User:Joeytje50/ChatPMs.js', 'c');

// PortableCSSPad importArticles({   type: 'script',    articles: [        'u:dev:PortableCSSPad/code.js'    ] });

// Buttons in Global Nav $( function {	if ( !document.getElementById( 'ca-skins' ) ) {		$( 'MB ' ).appendTo( '#GlobalNavigation' );	} } );

$( function {	if ( !document.getElementById( 'cs' ) ) {		$( ' CS' ).appendTo( '#GlobalNavigation' );	} } );

$( function {	if ( !document.getElementById( 'acdc' ) ) {		$( ' ACDC' ).appendTo( '#GlobalNavigation' );	} } );

$( function {	if ( !document.getElementById( 'gp' ) ) {		$( ' GP' ).appendTo( '#GlobalNavigation' );	} } );

// RC in Nav $(document).ready(function { $('.WikiHeader > nav > ul > li:first-child > ul').append(' OZ'); });

// MultiKick function showPopup { $('body').append(' Mass-kick <section class="modalContent"> <form method="" name="" class="WikiaForm "> Enter usernames here, separated by a comma and a space. Tab insert works. <input type="text" name="multikickinput" id="multikickinput" /> <a onclick="kickUsers" class="wikia-button">Kick!</a> <a onclick="cancelKick" id="cancel" class="wikia-button secondary">Cancel</a>  '); $('body').append('<div style="height: 100%; width: 100%; z-index: 2000000001; opacity: 0.65; display: block;" data-opacity="0.65" class="blackout"> '); } function kickUsers { var multikick = $('#multikickinput').val if (multikick.length != 0) { var usersToKick = multikick.split(", "); var i = 0; for (i; i<usersToKick.length; i++) { mainRoom.kick({name:usersToKick[i]}); }		$('#masskicker').remove; $('.blackout').remove; } } function cancelKick { $('#masskicker').remove; $('.blackout').remove; } $('<a id= "multiKickerButton" class="wikia-button" href="javascript:showPopup" style="position:absolute; right:55px; top:22px;">Multikick</a>').appendTo('.Write');