(function() {
var namespace = mw.config.get("wgNamespaceNumber");
if (namespace !== 0) {
	return;
}
var revid = mw.config.get("wgRevisionId");
$.get("https://ores.wikimedia.org/scores/enwiki/?models=wp10&revids=" + revid).then(
	function(data) {
		$("#firstHeading").append(" (" + data.prediction + " quality)");
		console.log(data);
	});
})();