您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Enables the custom MB option on 8mb.video by modifying the data-disabled attribute.
// ==UserScript== // @name 8mb.video Custom MB Bypass // @namespace http://tampermonkey.net/ // @version 1.2 // @description Enables the custom MB option on 8mb.video by modifying the data-disabled attribute. // @author Your Name // @match https://8mb.video/* // @grant none // @license MIT // ==/UserScript== (function () { 'use strict'; // Track whether the custom MB option has been enabled let isEnabled = false; function enableCustomMBOption() { const size101 = document.querySelector('#size101'); const customsize = document.querySelector('#customsize'); if (size101 && customsize && !isEnabled) { // Set the data-disabled attribute to false for both elements size101.setAttribute('data-disabled', 'false'); customsize.setAttribute('data-disabled', 'false'); // Remove the disabled property if it exists size101.disabled = false; customsize.disabled = false; console.log('Custom MB option enabled!'); isEnabled = true; // Mark as enabled to prevent repeated actions } } // Observe the DOM for changes const observer = new MutationObserver(() => { enableCustomMBOption(); }); // Start observing the document body for changes observer.observe(document.body, { childList: true, subtree: true }); // Initial attempt to enable the custom MB option enableCustomMBOption(); })();