您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
changes 'due tomorrow' to 'finish by today:'
当前为
// ==UserScript== // @name Google Classroom Productivity Boost // @namespace Violentmonkey Scripts // @match https://classroom.google.com/* // @grant none // @version 3.0 // @author Spiralshape21 // @icon https://i.pinimg.com/originals/98/d3/a2/98d3a283f98cded8e639957e935bd373.png // @require https://code.jquery.com/jquery-3.6.0.min.js // @license MIT // @description changes 'due tomorrow' to 'finish by today:' // ==/UserScript== // ============ START ============ // function sleep(ms) { return new Promise(resolve => setTimeout(resolve, ms)); } (async function(){ 'use strict'; var found = false; var toTest, i; while (!found) { await sleep(100); toTest = document.querySelectorAll("h2"); for (i=0; i<toTest.length; i++) { if (toTest[i].innerHTML == "Due today") { toTest[i].innerHTML = "Due today: (was to be done by yesterday)"; found = true; } } } })(); function slee(ms) { return new Promise(resolve => setTimeout(resolve, ms)); } (async function(){ 'use strict'; var found = false; var toTest, i; while (!found) { await slee(100); toTest = document.querySelectorAll("h2"); for (i=0; i<toTest.length; i++) { if (toTest[i].innerHTML == "Due tomorrow") { toTest[i].innerHTML = "Finish by today:"; found = true; } } } })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址