您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Add an input for custom duration of the game
// ==UserScript== // @name Custom time for arithmetic.zetamac.com // @namespace http://tampermonkey.net/ // @version 0.2 // @description Add an input for custom duration of the game // @author Anakojm // @match http*://arithmetic.zetamac.com/ // @icon https://www.google.com/s2/favicons?sz=64&domain=zetamac.com // @grant none // @license GPL // ==/UserScript== (function() { 'use strict'; // Remove dropdown document.querySelector("div#welcome form.game-options p select").remove() // Create a new input element let input=document.createElement("Input") input.placeholder="Time (s)"; // The website is looking for the content of the duration element input.name="duration"; // Append the new input to the wepbage document.querySelector("div#welcome form.game-options p").append(input) })();