Edgenty Helper

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

目前為 2024-11-04 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

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

    let completeCount = 0;

    const originalConsoleLog = console.log;
    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();
                    removeInvisODiv(); // Add this line
                    completeCount = 0; // Reset the counter
                    new Notification("Done!"); // Display the notification
                }
            }
        }
        originalConsoleLog.apply(console, arguments);
    };
})();

function removeInvisODiv() {
  'use strict';
  var element = document.getElementById('invis-o-div');
  if (element) {
    element.remove();
  }
}

var intervalId = setInterval(removeInvisODiv, 100); // 100ms = 0.1s
setTimeout(function() {
  clearInterval(intervalId);
}, 1000); // 1000ms = 1s