升学 E 网通 (EWT360) 播放速率 16

此脚本强制将 EWT 播放速率更改为 16。当您需要运行它时,请在浏览器上下文菜单中单击它。

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name           升学 E 网通 (EWT360) 播放速率 16
// @name:en        EWT Playback Rate 16
// @namespace      https://ewt.houtar.eu.org/
// @version        1.0.0
// @description    此脚本强制将 EWT 播放速率更改为 16。当您需要运行它时,请在浏览器上下文菜单中单击它。
// @description:en This script forces the EWT playback rate to 16. When you need to run it, click it in the browser context menu.
// @author         Houtar
// @match          https://web.ewt360.com/site-study/
// @icon           https://www.google.com/s2/favicons?sz=64&domain=ewt360.com
// @grant          none
// @license        GNU General Public License
// @run-at         context-menu
// ==/UserScript==

(function() {
    "use strict";

    var scriptText =
        '\nfor (var i = 0; i < 1000; i++) {\n  document.getElementsByTagName("video")[0].playbackRate = 16;\n  await (function (time) {\n    return new Promise(function (resolve) {\n      return setTimeout(resolve, time);\n    });\n  })(200);\n}\n';
    var newScript = document.createElement("script");
    var inlineScript = document.createTextNode(scriptText);
    newScript.appendChild(inlineScript);
    newScript.type = 'module';
    document.body.appendChild(newScript);

})();