User:Nanaki/global.js

qtUserPageTemplate = ''; // "Create user page" content override

PurgeButtonText = 'Odśwież';

importArticles({   type: "script",    articles: [      "u:dev:NoImageLightbox/code.js",      "u:dev:WHAM/code.js",      "u:dev:AjaxBatchDelete/code.js",      "u:dev:RevealAnonIP/usercode.js",      "u:dev:ShowAdsButton/code.js",      "u:dev:BackToTopButton/code.js",      "u:dev:RelatedDiscussionsModule/code.js",      "u:dev:PurgeButton/code.js",      "u:dev:OldFilePages/code.js",      "u:dev:PersistentParameters/code.js",    ] });

addOnloadHook(function {    if($('#UserProfileMasthead').length==0) return;    var hgroup = $('#UserProfileMasthead hgroup');    var user = hgroup.find('> H1:first-child').html;    var css = {        'background-color': 'rgba(255,255,255,0.9)',        'border-radius': '3px',        'display': 'inline-block',        'padding': '3px 5px',        'margin': '2px 5px',        'height': '16px',        'line-height': '16px',        'vertical-align': 'middle',    }    var en = $(document.createElement('span')).css(css).append('');    var pl = $(document.createElement('span')).css(css).append(''); var container = $(document.createElement('div')).css({       'float': 'right',        'height': '38px',        'line-height': '38px',        'vertical-align': 'middle',        'margin-right': '-15px',    }); if(! /spolecznosc.wikia.com/.test(location.href)) container.append(pl); if(! /community.wikia.com/.test(location.href)) container.append(en); hgroup.append(container); });

addOnloadHook(function {    $('#quicktools').click(function(event) { event.preventDefault; $('.dialog-full').dialog('open'); }); });