|
2 | 2 | // @name VIP视频破解 |
3 | 3 | // @name:en VIP Video Cracker |
4 | 4 | // @namespace hoothin |
5 | | -// @version 1.6.5 |
| 5 | +// @version 1.6.6 |
6 | 6 | // @description 解析并破解各大视频站的VIP权限 |
7 | 7 | // @description:en Crack VIP permissions of some chinese video sites |
8 | 8 | // @author hoothin |
|
116 | 116 | if(video.parentNode && !yinyuetai)video.parentNode.replaceChild(placeholder,video); |
117 | 117 | } |
118 | 118 | if(!vipVideoCrackEmbed || !embedCrack(url)){ |
119 | | - window.open(url); |
| 119 | + unsafeWindow.open(url); |
120 | 120 | } |
121 | 121 | select.options.selectedIndex=0; |
122 | 122 | } |
|
184 | 184 | } |
185 | 185 | var si=setInterval(function(){ |
186 | 186 | [].every.call(document.querySelectorAll("object,embed,video"),function(item){ |
187 | | - var style=getComputedStyle(item, null); |
| 187 | + var style=unsafeWindow.getComputedStyle(item, null); |
188 | 188 | if(style.width.replace("px","")>100 && style.height.replace("px","")>100){ |
189 | 189 | video=item; |
190 | 190 | return false; |
|
193 | 193 | }); |
194 | 194 | if(video){ |
195 | 195 | clearInterval(si); |
196 | | - var videoStyle=getComputedStyle(video, null); |
| 196 | + var videoStyle=unsafeWindow.getComputedStyle(video, null); |
197 | 197 | videoWidth=videoStyle.width; |
198 | 198 | videoHeight=videoStyle.height; |
199 | 199 | var videoParent=video.parentNode; |
200 | 200 | if(yinyuetai){ |
201 | 201 | videoParent.parentNode.style.position="absolute"; |
202 | | - videoStyle=getComputedStyle(videoParent.parentNode, null); |
| 202 | + videoStyle=unsafeWindow.getComputedStyle(videoParent.parentNode, null); |
203 | 203 | videoWidth=videoStyle.width; |
204 | 204 | videoHeight=videoStyle.height; |
205 | 205 | } |
206 | 206 | videoParent.appendChild(crackArea); |
207 | | - placeholder.style.lineHeight=getComputedStyle(videoParent).height; |
| 207 | + placeholder.style.lineHeight=unsafeWindow.getComputedStyle(videoParent).height; |
208 | 208 | if(vipVideoCrackJump){ |
209 | 209 | jumpCheck.checked=true; |
210 | 210 | } |
|
223 | 223 | window.postMessage("replaceState","*"); |
224 | 224 | return pushState.apply(history, arguments); |
225 | 225 | };`); |
226 | | - window.addEventListener('message',function(e) { |
| 226 | + unsafeWindow.addEventListener('message',function(e) { |
227 | 227 | if(e.data=="pushState" || e.data=="replaceState"){ |
228 | 228 | setTimeout(function(){crackJump();},1); |
229 | 229 | } |
|
0 commit comments