User:Benfutbol10/global.js

importScriptPage('User:Monchoman45/ChatHacks.js', 'c'); importScriptPage('WHAM/code.js', 'dev');

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

//Special CSS controller jQuery(function ($) {   if (mw.config.get('wgCanonicalSpecialPageName') === 'CSS') {        $(".css-editor").prepend(" 100% ");    };    var countcss = 0;    $("#buttom-css").click(function  { countcss += 1; if (countcss == 1) { $(this).text("Default"); $(".css-editor-wrapper").css("width", "100%"); $(".css-side-bar").css("display", "none"); $(".ace_gutter").css("display", "none"); $(".ace_scroller").css("left", "0px"); }       if (countcss == 2) { $(this).text("100%"); $(".css-editor-wrapper").css("width", "auto"); $(".css-side-bar").css("display", "block"); $(".ace_gutter").css("display", "block"); $(".ace_scroller").css("left", "49px"); countcss = 0 }   }); });

// Chat -- Sonido de notificación $(function {   var sonidourl = "http://images.wikia.com/pruebasbf10/es/images/0/01/Notification.ogg";        $('   Sonidos de notif. ').appendTo('#ChatHeader');

$('.Chat ul').bind('DOMNodeInserted', function(event) {          if($('#sonidonotif').is(":checked")) {                 $("#notificacionchat")[0].play;           }        }); $(' #ChatHeader > input, #ChatHeader > label { position: absolute; right: 160px; top: 10px; z-index: 999; } ').appendTo('body'); });