Skip to content

Instantly share code, notes, and snippets.

@chainsawriot
Last active November 25, 2018 21:37
Show Gist options
  • Save chainsawriot/d9de95332f102992ef8988e45f7cea17 to your computer and use it in GitHub Desktop.
Save chainsawriot/d9de95332f102992ef8988e45f7cea17 to your computer and use it in GitHub Desktop.
var click_score_pos = function(rev_id, pos) {
var reviews = document.querySelector("div[role='presentation'].x-grid3-body").querySelectorAll('tr');
tds = reviews[rev_id].querySelectorAll('td')
for (var key of tds.keys()) {
if (tds[key].getAttribute('class').includes('wrong')) {
var exId = key;
}
}
tds[exId + pos].click()
// sleep(2000)
// document.querySelector("input.x-form-focus").value = score
}
// Move the cursor to the third paper, second scoring position
click_score_pos(3, 2)
// Set the score to 5
document.querySelector("input.x-form-focus").value = 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment