User:Patrick87/common.js

// ########## load global.js from dewiki for cross wiki usage ########## mw.loader.load('//de.wikipedia.org/w/index.php?title=User:Patrick87/global.js&action=raw&ctype=text/javascript');

// ########## only for enwiki ##########

// Change "Upload file" link from File Upload Wizard to Special:Upload var d = document.getElementById("t-upload"); d.innerHTML = d.innerHTML.replace("wiki/Wikipedia:File_Upload_Wizard", "wiki/Special:Upload");

// Add preview button to upload form and preload with information template if (mw.config.get( 'wgCanonicalSpecialPageName' ) === 'Upload') { importScript("User:Patrick87/UploadForm.js"); }

// markAdmins (original source de:Benutzer:PDD/markAdmins.js) importScript('User:Patrick87/markAdmins.js'); markcomadmins = true; // zusätzlich: Commons-Admins besonders hervorheben markwdadmins = true; // zusätzlich: Wikidata-Admins besonders hervorheben

mw.hook('BeforePageDisplay').remove('ext.visualEditor.viewPageTarget.init'); mw.user.options.set('visualeditor-enable',0);