强制复制

理论上可以复制所有文字,请在手机上使用!

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         强制复制
// @namespace    https://viayoo.com/
// @version      0.4
// @description  理论上可以复制所有文字,请在手机上使用!
// @author       呆毛飘啊飘
// @run-at       document-idle
// @match        https://*/*
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
//注入css使所有内容可复制,两者均可单独使用
var n = document.createElement("style");
n.type = "text/css";
n.innerHTML = "*{user-select: auto!important;}";
document.body.appendChild(n);
//注入js使所有内容可复制,两者均可单独使用
let ys = document.getElementsByTagName('*');
for (var i=0;i<ys.length;i++) {
ys[i].style.userSelect='auto';
};

})();