您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
ウェブアーカイブの打トレ開始ボタン
// ==UserScript== // @name 打トレ開始ボタン // @namespace http://tampermonkey.net/ // @version 2025-02-01 // @description ウェブアーカイブの打トレ開始ボタン // @author You // @include https://web.archive.org/*/type.cgi // @icon https://www.google.com/s2/favicons?sz=64&domain=archive.org // @grant none // @license MIT // ==/UserScript== document.body.insertAdjacentHTML("beforeend", `<button id="start_func_button">startFunc(Enter)</button> <style> #start_func_button { position: fixed; bottom: 50px; right: 40px; padding: 1rem; font-size: larger; border: solid 2px; border-radius: 0.5rem; background: chartreuse; } </style> `) const element = document.getElementById("start_func_button") element.addEventListener("click", (event) => { startFunc() }) window.addEventListener("keydown", (event) => { if(event.key === "Enter") startFunc() }) Math.random = function(){return new Date().getMilliseconds()/1000}