|
42 | 42 | var cracks=[ |
43 | 43 | {name:"47影视云",url:"http://api.47ks.com/webcloud/?v=%s"}, |
44 | 44 | {name:"疯狂解析",url:"http://vip.ifkdy.com/?url=%s"}, |
| 45 | + {name:"小海解析",url:"https://ckplaer.duapp.com/hai.php?url=%s"}, |
45 | 46 | {name:"无名小站1",url:"http://www.wmxz.wang/video.php?url=%s"}, |
46 | 47 | {name:"无名小站2",url:"http://www.sfsft.com/admin.php?url=%s"}, |
47 | 48 | {name:"71ki解析",url:"http://jx.71ki.com/tong.php?url=%s"}, |
|
91 | 92 | select.onchange=function(){ |
92 | 93 | var value=select.options[select.options.selectedIndex].value; |
93 | 94 | if(value){ |
94 | | - window.open(value.replace("%s",location.href)); |
| 95 | + window.open(value.replace("%s",(iqiyi?decodeURIComponent(document.querySelector(".sns-icon>li>a").href.replace(/.*url=(.*)%3Fsrc.*/,"$1")):location.href.replace(/#.*/,"")))); |
95 | 96 | if(value=="https://greasyfork.org/scripts/23316/code/hacg.user.js"){ |
96 | 97 | GM_setValue("hacgGodTurnVisited",true); |
97 | 98 | select.options.remove(select.options.selectedIndex); |
|
109 | 110 | quickAccess.innerHTML="<input type='checkbox'>立即跳转"; |
110 | 111 | var jumpCheck=quickAccess.querySelector("input"); |
111 | 112 | jumpCheck.onclick=function(){ |
112 | | - if(iqiyi)jumpCheck.checked=false; |
113 | 113 | vipVideoCrackJump=jumpCheck.checked; |
114 | 114 | GM_setValue("vipVideoCrackJump",vipVideoCrackJump); |
115 | 115 | crackJump(); |
|
120 | 120 | crackArea.appendChild(quickAccess); |
121 | 121 | function crackJump(){ |
122 | 122 | if(vipVideoCrackJump){ |
| 123 | + console.log(value); |
123 | 124 | var value=vipVideoCrackUrl?vipVideoCrackUrl:cracks[0].url; |
124 | | - GM_openInTab(value.replace("%s",location.href),false); |
| 125 | + GM_openInTab(value.replace("%s",(iqiyi&&document.querySelector(".sns-icon>li>a")?decodeURIComponent(document.querySelector(".sns-icon>li>a").href.replace(/.*url=(.*)%3Fsrc.*/,"$1")):location.href.replace(/#.*/,""))),false); |
125 | 126 | if(video.parentNode && !iqiyi)video.parentNode.replaceChild(placeholder,video); |
126 | 127 | } |
127 | 128 | } |
|
139 | 140 | var videoParent=video.parentNode; |
140 | 141 | videoParent.appendChild(crackArea); |
141 | 142 | placeholder.style.lineHeight=getComputedStyle(videoParent).height; |
142 | | - if(vipVideoCrackJump && !iqiyi){ |
| 143 | + if(vipVideoCrackJump){ |
143 | 144 | jumpCheck.checked=true; |
144 | 145 | } |
145 | 146 | crackJump(); |
|
153 | 154 | setTimeout(function(){crackJump();},1); |
154 | 155 | return replaceState.apply(history, arguments); |
155 | 156 | }; |
| 157 | + if(iqiyi){ |
| 158 | + unsafeWindow.addEventListener("hashchange",function(){ |
| 159 | + crackJump(); |
| 160 | + }); |
| 161 | + } |
156 | 162 | }else{ |
157 | 163 | //console.log("no player!"); |
158 | 164 | } |
|
0 commit comments