Created
November 20, 2020 07:30
-
-
Save Digo/2b9cb588f8ccb515f4a9c8eb9e9bd044 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name 不要百度知道 | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description 方便从百度知道复制内容 | |
// @author tumuyan | |
// @match https://zhidao.baidu.com/question/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
var x = document.getElementById("qb-content"); | |
x.innerHTML=x.innerHTML.replace(/>(\d{3,8}|[\da-z]{40,80}|bai|du|zhi|dao|百|度|知|道)<\/span/g," style='width:auto;height:auto;display: inline;opacity:100;font-size:16px' /"); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment