User:Pcj/GlobalSearchForUserContribs.js

a = new mw.Api; var sites; var curWiki; var usr = "178.137.166.15"; function gNW(w){ curWiki = w;	wiki = sites.data.wikis[w]; if (wiki == undefined) return; fa = new mw.ForeignApi("//"+wiki.wiki_domain+"/api.php"); fa.get({action:"query",list:"usercontribs",uclimit:1,ucuser:usr}).done(function(data) {		if (data.query != undefined) {			if (data.query.usercontribs != undefined) {				if (data.query.usercontribs.length>0) console.log(sites.data.wikis[curWiki].wiki_display_name+" https://"+sites.data.wikis[curWiki].wiki_domain+"/Special:Contributions/"+usr.replace(" ","_"));			}		}		gNW(curWiki+1);	}).fail(function(data){		gNW(curWiki+1);	}); } a.get({action:"allsites","do":"getSiteStats"}).done(function(data){ sites = data; gNW(0);});