MediaWiki:AdminDashboard block/code.js

(function {   if ( mw.config.get('wgCanonicalSpecialPageName') !== 'AdminDashboard' || window.AdminDashboardJSButtonLoaded ) {       return;    }    window.AdminDashboardJSButtonLoaded = true;    $('section.wiki ul.controls').append( $('', {           'class': 'control',            'data-tooltip': 'Customize your wiki with local JS.'        }).append(            $('', { 'class': 'set', href: mw.util.getUrl('Служебная:BlockList') }).append( $(' ', {                   'class': 'representation'                }).append(                    $(' ', { css: { backgroundColor: '#0c77b6', borderRadius: '3px', height: '22px', left: '8px', position: 'absolute', top: '13px', width: '34px' }                   }).append( $(' ', {                           css: {                                color: 'white',                                left: '25%',                                position: 'absolute',                                top: '25%'                            },                            text: 'block'                        }) )               ),                'JS' )       )    ); });