User:VasilievVV/common.js

mw.loader.load('https://ru.wikipedia.org/w/index.php?action=raw&title=MediaWiki:Gadget-markblocked.js&ctype=text/javascript'); mw.loader.load('https://ru.wikipedia.org/w/index.php?action=raw&title=MediaWiki:Gadget-preview.js&ctype=text/javascript');

importScript('User:Js/diffs.js'); importScript('User:Rjd0060/PermissionOTRS.js'); importScript('User:Rjd0060/OTRS.js'); importScript('User:Rjd0060/OTRS-Text.js');

//TwinkleConfig.watchRevertedPages = [];

// Preview-only sandbox function disableEditFormSubmit { if( !( wgPageName == 'User:VasilievVV/Sandbox' && document.getElementById( 'wpSave' ) ) ) return; submitButton = document.getElementById( 'wpSave' ); submitButton.disabled = true; editform = document.getElementById( 'editform' ) for( item in editform.childNodes ) { if( item.name == 'wpEditToken' ) item.value = '0000000000'; } }

function onloadStuff { }

$( disableEditFormSubmit ); $( onloadStuff );