您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
开发环境脚本console过滤!
// ==UserScript== // @name console日志过滤脚本 // @namespace http://tampermonkey.net/ // @version 0.0.1 // @description 开发环境脚本console过滤! // @author jude // @run-at document-start // @match http://localhost:*/* // @match http://127.0.0.1:*/* // @grant unsafeWindow // @license MIT // ==/UserScript== (function() { 'use strict'; const originalConsoleLog = unsafeWindow.console.log; unsafeWindow.console.log = function (...args) { if ( args.length === 2 && typeof args[0] === "string" && args[0].includes(":") ) { originalConsoleLog(...args); } }; console.log("---------console过滤脚本运行中----------"); })();