User:HrantKhachatrian/WikiAutoDates.js

importScript('MediaWiki:Gadget-morebits.js'); importScript('User:HrantKhachatrian/GetNameDescrFromInfoBox.js');

setTimeout(function {	var currentPage = new Morebits.wiki.page(mw.config.get('wgPageName'));

currentPage.load(function {		var text = currentPage.getPageText;		var ret = WikiAutoDates.GetNameDescrFromInfoBox(text);		console.log(ret);	}); }, 2000);