User:YuviPanda/common.js

(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[revid]['wp10'].prediction + " quality)"); console.log(data); }); });