|
308 | 308 | } |
309 | 309 | },500); |
310 | 310 | }else if(config.sites.findSite("hacg").regex.test(location.href)){ |
| 311 | + var feiZaos=document.getElementsByTagName("p1"); |
| 312 | + for(var feiZao of feiZaos){ |
| 313 | + if(feiZao.parentNode)feiZao.parentNode.removeChild(feiZao); |
| 314 | + } |
311 | 315 | var has8=false; |
312 | 316 | var comms=document.querySelectorAll("span.fn"); |
313 | 317 | var msg = "…" + unsafeWindow.quote,pos = 0; |
314 | | - function scrollMSG() { |
| 318 | + function scrollMsg() { |
315 | 319 | document.title = msg.substring(pos, msg.length) + msg.substring(0, pos); |
316 | 320 | pos++; |
317 | 321 | if (pos > msg.length) { |
318 | 322 | pos = 0; |
319 | 323 | document.title = originTitile; |
320 | 324 | }else{ |
321 | | - setTimeout(scrollMSG,150); |
| 325 | + setTimeout(scrollMsg,150); |
322 | 326 | } |
323 | 327 | } |
324 | | - scrollMSG(); |
| 328 | + scrollMsg(); |
325 | 329 | for(var comm of comms){ |
326 | 330 | if(comm.innerHTML == "\u5c0f\u0038\u9171"){ |
327 | 331 | has8=true; |
|
725 | 729 | return {pre:pre,next:next}; |
726 | 730 | } |
727 | 731 |
|
728 | | - //防爆补丁 |
729 | | - var feiZao=document.getElementsByTagName("p1"); |
730 | | - var fZLength=feiZao.length; |
731 | | - if (!!fZLength){ |
732 | | - for (var i = 0; i < fZLength; i++){ |
733 | | - feiZao[0].parentNode.removeChild(feiZao[0]); |
734 | | - } |
735 | | - } |
736 | | - |
737 | 732 | process(); |
738 | 733 | clickBlockListener(); |
739 | 734 |
|
|
753 | 748 | rocketBtn.style.visibility = "hidden"; |
754 | 749 | }; |
755 | 750 | var oD_text=document.createElement("input"); |
756 | | - oD_text.id="oD_text"; |
757 | 751 | oD_text.type="text"; |
758 | | - oD_text.style="width:168px;height:33px;position:absolute;margin-top: 0px;padding: 0px;"; |
| 752 | + oD_text.style="width:168px;height:33px;position:relative;margin-top: 0px;padding: 0px;"; |
759 | 753 | oD_text.placeholder="输入hash值"; |
760 | | - oD_text.title='将自动添加"magnet:?xt=urn:btih:",去除[]中的内容、非字母数字字符、空格'; |
| 754 | + oD_text.title='将自动添加"magnet:?xt=urn:btih:"并去除非法字符'; |
761 | 755 | var oD_button=document.createElement("button"); |
762 | | - oD_button.id="oD_button"; |
763 | 756 | oD_button.type="button"; |
764 | 757 | oD_button.textContent="开车"; |
765 | 758 | oD_button.style="padding:4px 0;position: absolute;top:-1px;right:0px;width:40px;height:35px"; |
|
784 | 777 | var oD_link=document.createElement("a"); |
785 | 778 | var oD_link2=document.createElement("a"); |
786 | 779 | var oD_link3=document.createElement("a"); |
787 | | - oD_link2.target="_blank"; |
788 | | - oD_link3.target="_blank"; |
| 780 | + oD_link2.target=oD_link3.target="_blank"; |
789 | 781 | oD_box.appendChild(oD_text); |
790 | 782 | oD_box.appendChild(oD_button); |
791 | 783 | oD_box.appendChild(document.createElement('br')); |
|
0 commit comments