No Overdues!

Being Submitted...

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name        No Overdues!
// @namespace   Violentmonkey Scripts
// @match       https://www.myedio.com/*
// @license     CC BY-NC
// @grant       none
// @version     1.1
// @author      Unknown Hacker
// @description Being Submitted...
// ==/UserScript==

/*
  _   _          ___                    _                   _
 | \ | | ___    / _ \__   _____ _ __ __| |_   _  ___  ___  | |
 |  \| |/ _ \  | | | \ \ / / _ \ '__/ _` | | | |/ _ \/ __| | |
 | |\  | (_) | | |_| |\ V /  __/ | | (_| | |_| |  __/\__ \ |_|
 |_| \_|\___/   \___/  \_/ \___|_|  \__,_|\__,_|\___||___/ (_)
*/

(function() {
    'use strict';

      // === User Configurable Settings ===


// Set this to true to enable console logging, or false to disable it.
    const enableLogging = true;

    // === End Of Configurable Settings ===

    function logScriptEnabled() {
        if (enableLogging) { // Only log if logging is enabled
            const logStyle = [
                'color: white',
                'background: linear-gradient(90deg, #ff5722, #ff9800)',
                'padding: 10px',
                'border-radius: 5px',
                'font-size: 16px',
                'font-weight: bold'
            ].join(';');

            console.log('%cScript Enabled: There are no set keys to disable.', logStyle);
        }
    }

    function removeElementsAndChangeText() {
        const calendarElements = document.querySelectorAll('.c-calendar-list-accordion');
        calendarElements.forEach(element => element.remove());

        const mediumSmallElements = document.querySelectorAll('.-mediumsmall.-neutral-darkest');
        mediumSmallElements.forEach(element => element.remove());

        const overdueElements = document.querySelectorAll('.-overdue');
        overdueElements.forEach(element => element.remove());

        const warningOverduesElements = document.querySelectorAll('.c-tag.-warning.-status-warning');
        warningOverduesElements.forEach(element => element.remove());

        const tagElements = document.querySelectorAll('.c-tag.-neutral-lightest');
        tagElements.forEach(tag => {
            tag.textContent = '0 OVERDUE';
        });
    }

    logScriptEnabled();
    setInterval(removeElementsAndChangeText, 10);

})();