您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
为页面右下角添加一个按钮,点击后切换无图模式,再次点击切回。
// ==UserScript== // @name 一键无图模式 // @namespace http://tampermonkey.net/ // @version 1.0 // @description 为页面右下角添加一个按钮,点击后切换无图模式,再次点击切回。 // @author yjy // @match http://*/* // @match https://*/* // @grant none // @license CC // ==/UserScript== (function() { 'use strict'; // Create a button to toggle visibility const toggleButton = document.createElement('button'); toggleButton.innerText = '无图'; toggleButton.style.fontSize = '12px'; toggleButton.style.position = 'fixed'; toggleButton.style.bottom = '20px'; toggleButton.style.right = '40px'; toggleButton.style.zIndex = '9999'; document.body.appendChild(toggleButton); var noImageMode = false; // Function to toggle image and video visibility function toggleNoImageMode() { noImageMode = !noImageMode; var displayValue = noImageMode ? 'none' : ''; document.querySelectorAll('img, video').forEach(function(element) { element.style.display = displayValue; }); } // Add click event listener to the button toggleButton.addEventListener('click', toggleNoImageMode); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址