User:ԱշոտՏՆՂ/common.js

addOnloadHook(function {	var translate = {		//The language you translate to		targetLanguage: 'hy',		//The language you translate from		sourceLanguage: mw.config.get('wgDBname').substr(0, mw.config.get('wgDBname').length - 4),		//The name of the link		tabLinkName: 'Translate',	        getLink: function  {        	        return 'http://tools.wmflabs.org/translate/text.php?article=' + mw.config.get('wgPageName') + '&from=' + this.sourceLanguage + '&to=' + this.targetLanguage;	        },		//Initializes script		initialize: function {			if (mw.config.get('wgNamespaceNumber') === 0) {				mw.util.addPortletLink('p-cactions', this.getLink, this.tabLinkName, "tab-translate", 'Translate to ' + this.targetLanguage, "t");			}		}	};	translate.initialize; }); window.wikiTranslToolsConfig = { targetWiki: { lang: 'hy', translatedPageTemplate: '' } }; importScript('User:V111P/js/wikiTranslTools.js'); // User:V111P/js/wikiTranslTools.js mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Joeytje50/JWB.js/load.js&action=raw&ctype=text/javascript'); importScript("User:GregU/randomlink.js");