Skip to content

Commit b64c764

Browse files
committed
feat: copy #144
1 parent 51f493d commit b64c764

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

packages/copy/meta.json

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

packages/copy/src/modules/doc88.ts

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,21 @@ import dom from "../utils/dom";
22
import type { Website } from "../websites";
33

44
/*!
5-
* 外部引用`static.doc88.com`声明
6-
* 此部分是在处理`doc88.com`才会加载的资源文件,此资源文件由该网站加载时提供
5+
* 外部引用 static.doc88.com 声明
6+
* 此部分是在处理 doc88.com 才会加载的资源文件,此资源文件由该网站加载时提供
77
*/
88

99
let path = "";
1010
const website: Website = {
1111
regexp: /.*doc88\.com\/.+/,
1212
init: () => {
13-
// GM_xmlhttpRequest({
14-
// method: "GET",
15-
// url: "https://res.doc88.com/assets/js/v2.js",
16-
// onload: function(response) {
17-
// var view = new Function("var view = " + response.responseText.replace("eval", "") + "; return view;");
18-
// path = /<textarea[\s\S]*?Viewer.([\S]*?)\+[\S]*?\/textarea>/.exec(view())[1];
19-
// }
20-
// })
2113
dom.append(
2214
"body",
2315
`<style id="copy-element-hide">#left-menu{display: none !important;}</style>`
2416
);
2517
GM_xmlhttpRequest({
2618
method: "GET",
27-
url: "https://res3.doc88.com/resources/js/modules/main-v2.min.js?v=2.56",
19+
url: "https://res3.doc88.com/resources/js/modules/main-v2.min.js?v=3.55",
2820
onload: function (response) {
2921
const result = /\("#cp_textarea"\).val\(([\S]*?)\);/.exec(response.responseText);
3022
if (result) path = result[1];

0 commit comments

Comments
 (0)