User:Dominikmatus/common.js

//automatically trasnfer to Commons from local page if( mw.config.get('wgNamespaceNumber') == 6 && !mw.config.get('wgArticleId') // only if local page does not exist && document.getElementById('shared-image-desc') ) { location.href = '//commons.wikimedia.org/wiki/File:' + mw.config.get('wgPageName').replace(/^.*?:/,'').replace(/"/g,'&quot;')   + '?uselang=' + mw.config.get('wgUserLanguage'); }

mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:WikiBhasha.MSR/WikiBhasha.js&action=raw&ctype=text/js');