File tree Expand file tree Collapse file tree 2 files changed +4
-12
lines changed
Expand file tree Collapse file tree 2 files changed +4
-12
lines changed Original file line number Diff line number Diff line change 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" : [
Original file line number Diff line number Diff line change @@ -2,29 +2,21 @@ import dom from "../utils/dom";
22import type { Website } from "../websites" ;
33
44/*!
5- * 外部引用` static.doc88.com` 声明
6- * 此部分是在处理` doc88.com` 才会加载的资源文件,此资源文件由该网站加载时提供
5+ * 外部引用 static.doc88.com 声明
6+ * 此部分是在处理 doc88.com 才会加载的资源文件,此资源文件由该网站加载时提供
77 */
88
99let path = "" ;
1010const website : Website = {
1111 regexp : / .* d o c 8 8 \. c o m \/ .+ / ,
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 = / \( " # c p _ t e x t a r e a " \) .v a l \( ( [ \S ] * ?) \) ; / . exec ( response . responseText ) ;
3022 if ( result ) path = result [ 1 ] ;
You can’t perform that action at this time.
0 commit comments