Skip to content

Instantly share code, notes, and snippets.

@CennoxX
Last active January 4, 2024 11:04
Show Gist options
  • Save CennoxX/69239e7d6cc26a98a2203ecbb162c05b to your computer and use it in GitHub Desktop.
Save CennoxX/69239e7d6cc26a98a2203ecbb162c05b to your computer and use it in GitHub Desktop.
click at the correct this or that answer at rewards.bing.com
function getAnswerCode(key, str) {
let t = 0;
for (let i = 0; i < str.length; i++) {
t += str.charCodeAt(i);
}
t += parseInt(key.slice(-2), 16);
return t.toString();
}
Function(document.querySelector("link~script").innerHTML.split(/\n/)[1]);
var answer0 = document.querySelector("#rqAnswerOption0");
if (getAnswerCode(_G.IG, answer0.getAttribute("data-option")) == _w.rewardsQuizRenderInfo.correctAnswer)
answer0.click();
var answer1 = document.querySelector("#rqAnswerOption1");
if (getAnswerCode(_G.IG, answer1.getAttribute("data-option")) == _w.rewardsQuizRenderInfo.correctAnswer)
answer1.click();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment