User:Ninofr/global.js

importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:LinkPreview/code.js',        'u:dev:MediaWiki:LinkPreview/newpages.js',        'u:dev:MediaWiki:BlockListTools.js',        'u:dev:MediaWiki:MassEdit/code.js',        'u:dev:MediaWiki:MassNullEdit/code.js',        'u:dev:MediaWiki:AjaxBatchDelete/code.js',        'u:dev:MediaWiki:PageEditInfo/code.js',		'u:dev:MediaWiki:QuickLogs/code.js',		'u:dev:MediaWiki:ProtectionIcons.js',		'u:dev:MediaWiki:AnalyticsShortcut.js',		'u:dev:MediaWiki:CodeLinksDropdown.js',		'u:dev:MediaWiki:WHAM/code.2.js',		'u:dev:MediaWiki:DisableCode/code.js',		'u:dev:MediaWiki:DisableInfoboxBuilder.js',		'u:dev:MediaWiki:UserActivityLink.js',        'u:dev:MediaWiki:Standard Edit Summary/code.js',    ] }); window.blockListTools = { showAbuseLog: true, };

window.pPreview = $.extend(true, window.pPreview, {RegExp: (window.pPreview || {}).RegExp || {} }); window.pPreview.defimage = 'https://vignette.wikia.nocookie.net/borderlands/images/0/05/Ajax.gif/revision/latest/scale-to-width-down/350?cb=20170626182120&path-prefix=ru'; window.pPreview.noimage = 'https://upload.wikimedia.org/wikipedia/commons/thumb/c/c1/France_road_sign_B1.svg/1920px-France_road_sign_B1.svg.png'; window.pPreview.tlen = 1000;

mw.hook('wikipage.content').add(function($content) {   $content.find('#JRChatReplace').each(function { var $this = $(this); $this.html($(' ', { src: 'https://webchat.freenode.net/#' + encodeURIComponent($this.attr('data-channels')), width: $this.attr('data-width') || 450, height: $this.attr('data-height') || 500 }));   }); });