您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
让百度搜索结果的视频无法自动播放,无法复制粘贴板口令
// ==UserScript== // @name 禁止百度搜索自动播放视频和禁止粘贴板口令 // @version 2.2 // @description 让百度搜索结果的视频无法自动播放,无法复制粘贴板口令 // @author ChatGPT // @match https://m.baidu.com/* // @match https://www.baidu.com/* // @grant none // @run-at document-start // @namespace https://greasyfork.org/users/452911 // ==/UserScript== (function() { 'use strict'; let style = document.createElement('style'); style.innerHTML = `[data-video-player='true'] {display: none !important;}`; document.head.appendChild(style); })(); document.addEventListener('copy', function(e) { var copiedText = window.getSelection().toString(); if (copiedText.startsWith('1.fu:/') || copiedText.startsWith('#baiduhaokan') || copiedText.includes(':/¥^')) { e.preventDefault(); // 阻止写入粘贴板 console.log('禁止复制指定内容'); } });