User:Nixinova/common.js

// Test script mw.loader.load('/index.php?title=User:Nixinova/version-autocorrect.js&action=raw&ctype=text/javascript');

/*// Rollback confirmation Special:Diff/1312156 (function {	if(/Android/i.test(navigator.userAgent)) {		$(".mw-rollback-link").on('click', function(e) { var linkText = $(e.target).text, count = linkText.match(/\d/) ? linkText.match(/\d+/)[0] : null, message = 'Rollback ' + (count ? count + ' edits' : 'edit') + ' by ' + mw.util.getParamValue('from',e.target.href) + '?'; if(!confirm(message)) return e.preventDefault; });	} });//*/

// User:Majr/docTabs.js if (    $.inArray( mw.config.get( 'wgNamespaceNumber' ), [ 10, 11, 828, 829 ] ) > -1 ||    $.inArray( mw.config.get( 'wgNamespaceNumber' ), [ 2, 3 ] ) > -1 &&    mw.config.get( 'wgTitle' ).replace( /\/doc$/, '' ).search( /\.(js|css)$/ ) > -1 ) { importScript( 'User:Majr/docTabs.js' ); }