-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathA姐分享页面优化.user.js
25 lines (24 loc) · 1.19 KB
/
A姐分享页面优化.user.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// ==UserScript==
// @name A姐分享 页面优化
// @namespace https://greasyfork.org/en/scripts/443351
// @version 0.4
// @description 解除复制限制
// @author zhenhappy<[email protected]>
// @match https://*.abskoop.com/*/
// @match https://*.ahhhhfs.com/*/
// @icon https://www.abskoop.com/wp-content/uploads/2021/07/1625221481-04bb5153c0db541-192x192.webp
// @require https://unpkg.com/jquery/dist/jquery.slim.min.js
// @grant none
// @license MIT
// ==/UserScript==
(function() {
$('body').css("cssText", "-moz-user-select: auto !important; -webkit-user-select: auto !important; -ms-user-select: auto !important; -khtml-user-select: auto !important; user-select: auto !important")
setInterval(function () {
if (document.ondragstart !== null) document.ondragstart = null
if (document.onselectstart !== null) document.onselectstart = null
if (document.onbeforecopy !== null) document.onbeforecopy = null
if (document.onmouseup !== null) document.onmouseup = null
if (document.onselect !== null) document.onselect = null
if (document.oncopy !== null) document.oncopy = null
}, 500)
})();