kiddyearner

https://www.youtube.com/channel/UCm2XoBbuIVSgMagy3Q01tSw

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

Advertisement:

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

Advertisement:

// ==UserScript==
// @name         kiddyearner
// @namespace    https://kiddyearner.com/
// @version      0.1
// @description  https://www.youtube.com/channel/UCm2XoBbuIVSgMagy3Q01tSw
// @author       Laravandro
// @match        https://kiddyearner.com/quize
// @icon         https://www.google.com/s2/favicons?sz=64&domain=kiddyearner.com
// @grant        none
// @license      MIT 
// ==/UserScript==

(function () {
    'use strict';

    // Your code here...

    setTimeout(() => window.open("https://kiddyearner.com/quize", "_self"), 15000);
    const calc = fn => new Function('return ' + fn)();
    if (document.querySelector(".swal2-container")) document.querySelector(".swal2-container").remove();
    const param = document.querySelector("form > div.wrapper > p").innerText.replace('=', '');
    document.title = param;
    document.querySelectorAll("input[id^='option']").forEach(item => {
        if (calc(param) == item.value) {
            document.title += ` = ${item.value}`;
            item.click();
            setTimeout(() => document.querySelector("form#quize_form").submit(), 1500);
        }
    });

})();