Last active
November 25, 2018 21:37
-
-
Save chainsawriot/d9de95332f102992ef8988e45f7cea17 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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