$.getScript(
'//meta.wikimedia.org/w/index.php?title=User:EpochFail/ArticleQuality-system.js&action=raw&ctype=text/javascript',
function(){
articleQuality = new ArticleQuality({
ores_host: "https://ores.wikimedia.org",
weights: {
Stub: 1,
Start: 2,
C: 3,
B: 4,
GA: 5,
FA: 6
},
names: {
Stub: "{{class|Stub|image=yes}}",
Start: "{{class|Start|image=yes}}",
C: "{{class|C|image=yes}}",
B: "{{class|B|image=yes}}",
GA: "{{class|GA|image=yes}}",
FA: "{{class|FA|image=yes}}"
},
assessment_system: "ORES predicted quality",
dbname: "enwiki"
});
if(mw.config.get('wgAction') === "history" && (mw.config.get('wgNamespaceNumber') === 0 || mw.config.get('wgNamespaceNumber') === 118)){
articleQuality.getAndRenderHistoryScores();
}
if(mw.config.get('wgAction') === "view" && (mw.config.get('wgNamespaceNumber') === 0 || mw.config.get('wgNamespaceNumber') === 118)){
articleQuality.getAndRenderScoreHeader();
}
articleQuality.addScoresToArticleLinks();
}
);
mw.loader.load("//meta.wikimedia.org/w/index.php?title=User:EpochFail/ArticleQuality.css&action=raw&ctype=text/css", 'text/css');