Last active
January 4, 2024 11:04
-
-
Save CennoxX/69239e7d6cc26a98a2203ecbb162c05b to your computer and use it in GitHub Desktop.
click at the correct this or that answer at rewards.bing.com
This file contains hidden or 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
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