User:Pcj/PurgeSMWProperty.js

a=new mw.Api; function psm{ a.get({action:"ask",query:""}).done(function(data){       r = data.query.results;        for (d in r) a.post({action:"purge",forcelinkupdate:1,titles:d});  		if (data["query-continue-offset"] != undefined) psm;    }); } psm