Edgenty Helper

Helps with edgenty, makes the player send notifications when complete, automatically navigates to the next slide, occasionally skips activities (happy accident), and makes it so you can start activities while instructor is still speaking, mainly meant for people trying to rush Edgenty and keeps the tab muted. Also just grant or don't grant notification permission as per your preference, as it wont ask for permission.

当前为 2024-11-01 提交的版本,查看 最新版本

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         Edgenty Helper
// @namespace    https://www.tampermonkey.net/
// @version      0.1
// @description  Helps with edgenty, makes the player send notifications when complete, automatically navigates to the next slide, occasionally skips activities (happy accident), and makes it so you can start activities while instructor is still speaking, mainly meant for people trying to rush Edgenty and keeps the tab muted. Also just grant or don't grant notification permission as per your preference, as it wont ask for permission.
// @author       TTT
// @license MIT
// @match        *://*/*
// @grant        none
// ==/UserScript==
(function() {
    'use strict';

    let completeCount = 0;

    function startInterval() {
        let intervalId = setInterval(function() {
            var element = document.getElementById('invis-o-div');
            if (element) {
                element.remove();
            }
        }, 100);

        setTimeout(function() {
            clearInterval(intervalId);
        }, 1000);
    }

    console.log = function() {
        const message = Array.from(arguments).join(' ');
        if (message.includes('complete')) {
            completeCount++;
            if (completeCount === 2) {
                const goRightButton = document.querySelector('li.FrameRight a');
                if (goRightButton) {
                    goRightButton.click();
                    completeCount = 0;
                    new Notification("Done!");
                    startInterval();
                }
            }
        }
        originalConsoleLog.apply(console, arguments);
    };

    const originalConsoleLog = console.log;
})();