您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
12/28/2021, 9:44:59 AM
// ==UserScript== // @name Hide VScode Live Server // @namespace Violentmonkey Scripts // @match http://127.0.0.1:550*/* // @run-at document-idle // @grant none // @version 1.3 // @author Mikhail 'UniBreakfast' Ninin // @license MIT // @description 12/28/2021, 9:44:59 AM // ==/UserScript== hideLiveServer() function hideLiveServer() { const {body} = document const script = findScriptByText('LiveServer') const comment = findCommentByText('live-server') if (script) script.remove() if (comment) comment.remove() setTimeout(() => { body.classList.remove('vsc-initialized') if (!body.className) body.removeAttribute('class') }, 500) } function findCommentByText(text) { return Array.from(document.body.childNodes).find(node => node.textContent.includes('live-server')) } function findScriptByText(text) { return Array.from(document.scripts).find(script => script.textContent.includes(text)) }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址