|
75 | 75 | // @include http*://www.l-sj.cc/* |
76 | 76 | // @include http*://htacg.cc/* |
77 | 77 | // @include http*://www.htacg.cc/* |
78 | | -// @version 3.21.25 |
| 78 | +// @version 3.21.26 |
79 | 79 | // @grant GM_notification |
80 | 80 | // @grant GM_xmlhttpRequest |
81 | 81 | // @grant GM_setClipboard |
82 | 82 | // @grant GM_setValue |
83 | 83 | // @grant GM_getValue |
84 | 84 | // @grant unsafeWindow |
85 | 85 | // @run-at document-end |
86 | | -// @require https://greasyfork.org/scripts/23522/code/od.js?version=167311 |
| 86 | +// @require https://greasyfork.org/scripts/23522/code/od.js?version=167534 |
87 | 87 | // @require https://cdn.jsdelivr.net/crypto-js/3.1.2/components/core-min.js |
88 | 88 | // @require https://cdn.jsdelivr.net/crypto-js/3.1.2/rollups/aes.js |
89 | 89 | // @license MIT License |
|
380 | 380 | }; |
381 | 381 | } |
382 | 382 |
|
383 | | - var t, curSite, curArticle, copyData, siteListHtml; |
| 383 | + var t, curSite, curArticle, siteListHtml; |
384 | 384 | var originTitile = document.title; |
385 | 385 | var isHttps=location.protocol=="https:"; |
386 | 386 | if(isHttps){ |
|
978 | 978 | if(curArticle)curArticle.classList.remove("oD_sel"); |
979 | 979 | }); |
980 | 980 | document.addEventListener("copy", function(e) { |
981 | | - copyData=document.getSelection().toString(); |
| 981 | + var copyData=document.getSelection().toString(); |
| 982 | + if(copyData && oD_text){ |
| 983 | + oD_text.value=copyData; |
| 984 | + } |
982 | 985 | }); |
983 | 986 |
|
984 | 987 | document.getElementsByTagName("head")[0].appendChild(nod); |
|
1002 | 1005 | alert("\u68c0\u6d4b\u5230\u0049\u0044\u51b2\u7a81\uff01\u8bf7\u68c0\u67e5\u662f\u5426\u5b58\u5728\u91cd\u590d\u811a\u672c\u6216\u540c\u7c7b\u811a\u672c"); |
1003 | 1006 | } |
1004 | 1007 | },500); |
| 1008 | + var oD_box,oD_text,oD_button; |
1005 | 1009 | if((!curSite || !curSite.hideOd) && !frameElement){ |
1006 | | - var oD_box=document.createElement("div"); |
| 1010 | + oD_box=document.createElement("div"); |
1007 | 1011 | oD_box.id="oD_box"; |
1008 | 1012 | oD_box.className = "oD_box"; |
1009 | 1013 | oD_box.onmouseover = function(e) { |
1010 | 1014 | oD_link.style.visibility = "visible"; |
1011 | 1015 | oD_link2.style.visibility = "visible"; |
1012 | 1016 | rocketBtn.style.visibility = "visible"; |
1013 | | - if(copyData && !oD_text.value){ |
1014 | | - oD_text.value=copyData; |
1015 | | - } |
1016 | 1017 | }; |
1017 | 1018 | oD_box.onmouseout = function(e) { |
1018 | 1019 | oD_link.style.visibility = "hidden"; |
1019 | 1020 | oD_link2.style.visibility = "hidden"; |
1020 | 1021 | rocketBtn.style.visibility = "hidden"; |
1021 | 1022 | }; |
1022 | | - var oD_text=document.createElement("input"); |
| 1023 | + oD_text=document.createElement("input"); |
1023 | 1024 | oD_text.type="text"; |
1024 | 1025 | oD_text.style.cssText="width:168px;height:33px;position:relative;margin-top:0px;padding:0px;box-sizing:border-box;z-index:0"; |
1025 | 1026 | oD_text.placeholder="输入hash值或网盘地址"; |
1026 | 1027 | oD_text.title='将自动添加"magnet:?xt=urn:btih:"并去除非法字符'; |
1027 | | - var oD_button=document.createElement("button"); |
| 1028 | + oD_button=document.createElement("button"); |
1028 | 1029 | oD_button.type="button"; |
1029 | 1030 | oD_button.textContent="开车"; |
1030 | 1031 | oD_button.style.cssText="padding:4px 0;position: absolute;top:-1px;right:0px;width:40px;height:35px"; |
|
0 commit comments