User:.jun/global.js

// Chat hacks importScriptPage('User:Monchoman45/ChatHacks.js', 'c'); importScriptPage('User:Joeytje50/tabinsert.js', 'rs'); // AjaxRC if (mw.config.get('wgCanonicalSpecialPageName') == 'WikiActivity') { // reposition to the right on special:wikiactivity mw.util.addCSS(       '#ajaxRefresh {' +            'position: absolute;' +            'right: 0;' +            'bottom: 10px;' +        '}' +        '#ajaxLoadProgress {' +            'margin-left: 5px;' +        '}'    ); } window.ajaxCallAgain = window.ajaxCallAgain || []; window.ajaxCallAgain.push(function {   $('.rc-conntent, .activityfeed')        .find('a')        .each(function { $(this).attr('target', '_blank'); }); }); window.ajaxPages = ['Special:RecentChanges', 'Special:WikiActivity'], window.ajaxRefresh = 30000; // Miscellaneous $('.start-wikia-container').html(   ' -1 ? '&' : '?') + 'useskin=monobook" class="start-wikia">M' +    ' -1 ? '&' : '?') + 'useskin=wikiamobile" class="start-wikia" style="margin-left:10px">W' +    ' -1 ? '&' : '?') + 'uselang=qqx" class="start-wikia" style="margin-left:10px">Q' ); // special:wikiactivity > special:recentchanges $('[data-canonical="wikiactivity"]') .attr('href', '/wiki/Special:RecentChanges') .html('Recent Changes'); // opens links on new pages $('.rc-conntent, .activityfeed') .find('a') .each(function {       $(this).attr('target', '_blank');    }); if ($.getUrlVar('action') == 'edit' &&  $('#wpSummary').length   ) { var val = ''; if ($('#wpSummary').val) { val = $('#wpSummary').val; }   $('#wpSummary').replaceWith($(' ').attr({ id: 'wpSummary', name: 'wpSummary', style: 'resize: none; height: 40px', placeholder: 'Add a summary of your edit' }).val(val)); } // Custom edit buttons if (mw.toolbar) { mw.toolbar.addButton(       'http://static1.wikia.nocookie.net/__cb20070329064845/central/images/2/23/Button_code.png',        'Code',        ' ',        '',        'mw-editbutton-code'    ); }

// View Source mw.util.addCSS(   '#source-code, #source-toc {' +        'font-family: monaco, monospace !important;' +    '}' +    '#source-code > a {' +        'color: ' + $('a').css('color') + ' !important;' +        'font-weight: bold;' +    '}' );

// Separate hidden cats $(function {   if ($('.CategorySelect .hidden').length) {        $('.CategorySelect .container').append('  Hidden:  ');        mw.util.addCSS('.hidden-categories-container {border-top:1px solid ' + $('.CategorySelect').css('border-color') + ';}');        $('.CategorySelect .category').each(function { if ($(this).hasClass('hidden')) { $(this).appendTo($('.hidden-categories')); }       });    } });

// Imports importArticles({   type: 'script',    articles: [        'u:dev:AjaxRC/code.js',        'u:dev:PersistentParameters/code.js',        'u:dev:LastEdited/code.js',        'u:c:User:Fubuki風吹/disableCodeEditor.js',        'u:dev:QuickDiff/code.js',        'u:dev:View_Source/code.js'    ] });