您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Guapo Hermosisimo
// ==UserScript== // @name Discord Download Block // @namespace http://tampermonkey.net/ // @version 1.6.3 // @author Mrgaton , tnfAngel // @match *://discord.com/* // @match *://ptb.discord.com/* // @match *://canary.discord.com/* // @description Guapo Hermosisimo // @grant none // ==/UserScript== document.body.appendChild(document.createElement `iframe`).contentWindow.localStorage.hideMFASMSNotice= `true` document.body.appendChild(document.createElement `iframe`).contentWindow.localStorage.hideNag = `true` document.body.appendChild(document.createElement `iframe`).contentWindow.localStorage.BrowserHandoffStore= `true` document.body.appendChild(document.createElement `iframe`).contentWindow.localStorage.collapsedCategoryMigration= `true` document.body.appendChild(document.createElement `iframe`).contentWindow.localStorage.shouldShowChangeLog = `false` let clases = ["notice-3bPHh-", "colorDefault-22HBa0"] let sitios = ["discord.com"] function comprobarClase(nombre) { if (document.getElementsByClassName(nombre).length > 0) { return true } else { return false } } function eliminarPorClase(nombre) { const elementos = document.getElementsByClassName(nombre) while (elementos.length > 0) { elementos[0].parentNode.removeChild(elementos[0]) } } function comprobarClases() { let incluye = false if (sitios) { sitios.forEach(sitio => { if (window.location.host.includes(sitio)){ incluye = true } }) } if (incluye) { clases.forEach(clase => { if (comprobarClase(clase)) { eliminarPorClase(clase) console.log(`La clase '${clase}' fue eliminada del DOM.`) } }) } } Load() comprobarClases() setInterval(() => { comprobarClases() }, 5000)