Skip to content

Commit bedc12f

Browse files
committed
Deploying to gh-pages from @ 565a643 🚀
1 parent 1b47bd3 commit bedc12f

4 files changed

Lines changed: 15 additions & 9 deletions

File tree

copy.user.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// @name 🔥🔥🔥文本选中复制🔥🔥🔥
33
// @description 解除网站不允许复制的限制,文本选中后点击复制按钮即可复制,主要用于 百度文库 道客巴巴 腾讯文档 豆丁网 无忧考网 学习啦 蓬勃范文 思否社区 力扣 知乎 语雀 等
44
// @namespace https://github.com/WindrunnerMax/TKScript
5-
// @version 6.2.8
5+
// @version 6.2.9
66
// @author Czy
77
// @match *://wenku.baidu.com/view/*
88
// @match *://wenku.baidu.com/share/*
@@ -175,8 +175,8 @@
175175
};
176176

177177
/*!
178-
* 外部引用`static.doc88.com`声明
179-
* 此部分是在处理`doc88.com`才会加载的资源文件,此资源文件由该网站加载时提供
178+
* 外部引用 static.doc88.com 声明
179+
* 此部分是在处理 doc88.com 才会加载的资源文件,此资源文件由该网站加载时提供
180180
*/
181181
let path = "";
182182
const website$u = {
@@ -188,7 +188,7 @@
188188
);
189189
GM_xmlhttpRequest({
190190
method: "GET",
191-
url: "https://res3.doc88.com/resources/js/modules/main-v2.min.js?v=2.56",
191+
url: "https://res3.doc88.com/resources/js/modules/main-v2.min.js?v=3.55",
192192
onload: function(response) {
193193
const result = /\("#cp_textarea"\).val\(([\S]*?)\);/.exec(response.responseText);
194194
if (result)

meta/copy.meta.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// @name 🔥🔥🔥文本选中复制🔥🔥🔥
33
// @description 解除网站不允许复制的限制,文本选中后点击复制按钮即可复制,主要用于 百度文库 道客巴巴 腾讯文档 豆丁网 无忧考网 学习啦 蓬勃范文 思否社区 力扣 知乎 语雀 等
44
// @namespace https://github.com/WindrunnerMax/TKScript
5-
// @version 6.2.8
5+
// @version 6.2.9
66
// @author Czy
77
// @match *://wenku.baidu.com/view/*
88
// @match *://wenku.baidu.com/share/*

meta/water-mark.meta.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@
66
// @description:en Remove watermarks from common web pages
77
// @description:zh 移除常见网页的水印
88
// @namespace https://github.com/WindrunnerMax/TKScript
9-
// @version 1.0.5
9+
// @version 1.0.6
1010
// @author Czy
1111
// @match http://*/*
1212
// @match https://*/*
1313
// @supportURL https://github.com/WindrunnerMax/TKScript/issues
1414
// @license GPL License
1515
// @installURL https://github.com/WindrunnerMax/TKScript
1616
// @run-at document-start
17+
// @grant GM_addStyle
1718
// @grant unsafeWindow
1819
// ==/UserScript==

water-mark.user.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@
66
// @description:en Remove watermarks from common web pages
77
// @description:zh 移除常见网页的水印
88
// @namespace https://github.com/WindrunnerMax/TKScript
9-
// @version 1.0.5
9+
// @version 1.0.6
1010
// @author Czy
1111
// @match http://*/*
1212
// @match https://*/*
1313
// @supportURL https://github.com/WindrunnerMax/TKScript/issues
1414
// @license GPL License
1515
// @installURL https://github.com/WindrunnerMax/TKScript
1616
// @run-at document-start
17+
// @grant GM_addStyle
1718
// @grant unsafeWindow
1819
// ==/UserScript==
1920
(function () {
@@ -67,17 +68,21 @@
6768
};
6869

6970
const injectCSSEarly = (css) => {
71+
if (typeof GM_addStyle === "function") {
72+
GM_addStyle(css);
73+
return void 0;
74+
}
7075
const style = document.createElement("style");
7176
style.innerText = css;
7277
const head = document.head;
7378
if (head) {
7479
head.appendChild(style);
75-
return;
80+
return void 0;
7681
}
7782
const html = document.documentElement;
7883
if (html) {
7984
html.appendChild(style);
80-
return;
85+
return void 0;
8186
}
8287
styles.insertCSS(String(Math.random()), css);
8388
};

0 commit comments

Comments
 (0)