您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
removes the megasync dl button and replaces it with the inline browser one
当前为
// ==UserScript== // @name mega dl button fix // @version 0.1 // @match https://mega.nz/* // @description removes the megasync dl button and replaces it with the inline browser one // @grant none // @namespace https://greasyfork.org/users/29657 // ==/UserScript== waitForButton(); function doEverything() { msbut = document.getElementsByClassName("with-megasync")[0]; msbut.style.display = "none"; inbut = document.getElementsByClassName("throught-browser")[0]; inbut.className += " red"; } function waitForButton() { buttons = document.getElementsByClassName("throught-browser").length; if(buttons > 0) { doEverything(); } else { setTimeout(waitForButton, 500); } }