Blooket.mod5

View All The Correct Answers on Blooket

目前为 2023-05-22 提交的版本。查看 最新版本

// ==UserScript==
// @name         Blooket.mod5
// @namespace    http://gf.qytechs.cn/
// @version      7
// @description  View All The Correct Answers on Blooket
// @author       You
// @match        https://*.blooket.com/*
// @icon         https://res.cloudinary.com/blooket/image/upload/v1613003832/Blooks/redAstronaut.svg
// @grant        none
// @license      MIT
// ==/UserScript==

(async () => {
    setInterval(() => {
        const { state: t, props: n } = Object.values(document.querySelector("body div[id] > div > div"))[1].children[0]._owner["stateNode"];
        [...document.querySelectorAll('[class*="answerContainer"]')].forEach((e, o) => {
            (t.question || n.client.question).correctAnswers.includes((t.question || n.client.question).answers[o]) ? (e.style.backgroundColor = "rgb(0, 207, 119)") : (e.style.backgroundColor = "rgb(189, 15, 38)");
        });
    });
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址