I was noticing different users having different patterns for upvotes versus agreement (partly because mine seemed to be skewed toward agreement…) and I wanted to play with it a little more. Here’s a script that extracts the votes from this page. Expand all comments (⌘F) before running.
function author(meta) {
return meta.children[1].innerText;
}
function votes(meta) {
return meta.children[3].innerText.split("\n");
}
const metas = document.getElementsByClassName("CommentsItem-meta");
const output = {};
for (let i = 0; i < metas.length; i++) {
const meta = metas[i];
output[author(meta)] = output[author(meta)] || {
comments: 0,
upvotes: 0,
agreement: 0,
};
output[author(meta)].comments++;
output[author(meta)].upvotes += Number(votes(meta)[0]);
output[author(meta)].agreement += Number(votes(meta)[1]);
}
Here’s the total agreement:upvotes ratio for this thread, by user:
I was noticing different users having different patterns for upvotes versus agreement (partly because mine seemed to be skewed toward agreement…) and I wanted to play with it a little more. Here’s a script that extracts the votes from this page. Expand all comments (⌘F) before running.
Here’s the total agreement:upvotes ratio for this thread, by user: