Google Classroom Productivity Boost

changes 'due tomorrow' to 'finish by today:'

目前為 2022-04-26 提交的版本,檢視 最新版本

// ==UserScript==
// @name        Google Classroom Productivity Boost
// @namespace   Violentmonkey Scripts
// @match       https://classroom.google.com/*
// @grant       none
// @version     3.1
// @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;
            }
        }
    }
})();





function a1(ms) {
    return new Promise(resolve => setTimeout(resolve, ms));
}

(async function(){
    'use strict';
    var found = false;
    var toTest, i;
    while (!found) {
        await a1(100);

        toTest = document.querySelectorAll("h2");
        for (i=0; i<toTest.length; i++) {
            if (toTest[i].innerHTML == "Due Monday") {
                toTest[i].innerHTML = "Finish by Sunday:";
                found = true;
            }
        }
    }
})();



function b2(ms) {
    return new Promise(resolve => setTimeout(resolve, ms));
}

(async function(){
    'use strict';
    var found = false;
    var toTest, i;
    while (!found) {
        await b2(100);

        toTest = document.querySelectorAll("h2");
        for (i=0; i<toTest.length; i++) {
            if (toTest[i].innerHTML == "Due Tuesday") {
                toTest[i].innerHTML = "Finish by Monday:";
                found = true;
            }
        }
    }
})();







function c3(ms) {
    return new Promise(resolve => setTimeout(resolve, ms));
}

(async function(){
    'use strict';
    var found = false;
    var toTest, i;
    while (!found) {
        await c3(100);

        toTest = document.querySelectorAll("h2");
        for (i=0; i<toTest.length; i++) {
            if (toTest[i].innerHTML == "Due Wednesday") {
                toTest[i].innerHTML = "Finish by Tuesday:";
                found = true;
            }
        }
    }
})();







function d4(ms) {
    return new Promise(resolve => setTimeout(resolve, ms));
}

(async function(){
    'use strict';
    var found = false;
    var toTest, i;
    while (!found) {
        await d4(100);

        toTest = document.querySelectorAll("h2");
        for (i=0; i<toTest.length; i++) {
            if (toTest[i].innerHTML == "Due Thursday") {
                toTest[i].innerHTML = "Finish by Wednesday:";
                found = true;
            }
        }
    }
})();






function e5(ms) {
    return new Promise(resolve => setTimeout(resolve, ms));
}

(async function(){
    'use strict';
    var found = false;
    var toTest, i;
    while (!found) {
        await e5(100);

        toTest = document.querySelectorAll("h2");
        for (i=0; i<toTest.length; i++) {
            if (toTest[i].innerHTML == "Due Friday") {
                toTest[i].innerHTML = "Finish by Thursday:";
                found = true;
            }
        }
    }
})();








function f6(ms) {
    return new Promise(resolve => setTimeout(resolve, ms));
}

(async function(){
    'use strict';
    var found = false;
    var toTest, i;
    while (!found) {
        await f6(100);

        toTest = document.querySelectorAll("h2");
        for (i=0; i<toTest.length; i++) {
            if (toTest[i].innerHTML == "Due Saturday") {
                toTest[i].innerHTML = "Finish by Friday:";
                found = true;
            }
        }
    }
})();






function g7(ms) {
    return new Promise(resolve => setTimeout(resolve, ms));
}

(async function(){
    'use strict';
    var found = false;
    var toTest, i;
    while (!found) {
        await g7(100);

        toTest = document.querySelectorAll("h2");
        for (i=0; i<toTest.length; i++) {
            if (toTest[i].innerHTML == "Due Sunday") {
                toTest[i].innerHTML = "Finish by Saturday:";
                found = true;
            }
        }
    }
})();


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或关注我们的公众号极客氢云获取最新地址