User:Rusy233 ms/global.js

/* Imports */ var qtUserPageTemplate = ''; importArticles({   type: 'script',    articles: [        'u:dev:QuickCreateUserPage/code.js',        'u:dev:MediaWiki:SnowStorm.js',        'u:dev:AjaxRC/code.js',        'u:dev:PurgeButton/code.js',        'u:dev:UserActivityTab/code.js',        'u:dev:MediaWiki:WhatLinksHere/code.js'    ] });

/* Wikificator */ function addWikifButton { var toolbar = document.getElementById('toolbar'); if (!toolbar) return; var i = document.createElement('img'); i.src = 'http://upload.wikimedia.org/wikisource/ru/d/d1/Button-wikifikator.png'; i.alt = i.title = 'викификатор'; i.onclick = Wikify; i.style.cursor = 'pointer'; toolbar.appendChild(i); } if (wgAction == 'edit' || wgAction == 'submit') { importScriptURI('http://ru.wikipedia.org/w/index.php?title=MediaWiki:Wikificator.js&action=raw&ctype=text/javascript'); addOnloadHook(addWikifButton); }

/* Buttons (ru) */ if ( mwCustomEditButtons ) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/c/c8/Button_redirect.png", "speedTip": "Перенаправление", "tagOpen": "#перенаправление ",		"tagClose": "", "sampleText": "Введите текст" };	mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/c/c9/Button_strike.png", "speedTip": "Зачеркнуть", "tagOpen": " ", "tagClose": " ", "sampleText": "Введите текст" };	mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/1/13/Button_enter.png", "speedTip": "На другую строку", "tagOpen": " ", "tagClose": "", "sampleText": "" };	mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/7/74/Button_comment.png", "speedTip": "Комментарий виден только для редакторов", "tagOpen": "", "sampleText": "Введите свой комментарий" };	mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "https://vignette.wikia.nocookie.net/wikia/images/c/ca/Button_code_(Rusy233_ms).png/revision/latest?cb=20180330183021&path-prefix=ru", "speedTip": "Код", "tagOpen": " ", "sampleText": "Введите текст" };	}