User:Meztinos/global.js

importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:Wikimarks/code.js',        'u:dev:MediaWiki:Rollback/code.js',        'u:dev:AjaxCommentDelete/code.js',   ] });

importScriptPage('WHAM/ru/code.2.js', 'dev');

function addWikifButton { var toolbar = document.getElementById('toolbar') if (!toolbar) return var i = document.createElement('img') i.src = '//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('//ru.wikipedia.org/w/index.php?title=MediaWiki:Wikificator.js&action=raw&ctype=text/javascript') addOnloadHook(addWikifButton) } //Created by Noemon from Dead Space Wiki function hideFade { // hide #backtotop first $( "#backtotop" ).hide ; // fade in #backtotop $( function {		$( window ).scroll( function  { if ( $( this ).scrollTop > ButtonStart ) { $( '#backtotop' ).fadeIn ; } else { $( '#backtotop' ).fadeOut ; }		});	}); } mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "https://upload.wikimedia.org/wikipedia/commons/2/26/Button_latinas.png", "speedTip": "Кавычки", "tagOpen": "«", "tagClose": "»", "sampleText": "" }; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "https://upload.wikimedia.org/wikipedia/commons/a/a4/H-line_icon.png", "speedTip": "Длинное тире", "tagOpen": "—", "tagClose": "", "sampleText": "" };