|
2 | 2 | // @name VIP视频破解 |
3 | 3 | // @name:en VIP Video Cracker |
4 | 4 | // @namespace hoothin |
5 | | -// @version 1.6.1 |
| 5 | +// @version 1.6.2 |
6 | 6 | // @description 解析并破解各大视频站的VIP权限 |
7 | 7 | // @description:en Crack VIP permissions of some chinese video sites |
8 | 8 | // @author hoothin |
|
77 | 77 | //{name:"百域阁",url:"http://api.svip.baiyug.cn/svip/index.php?url=%s"}, |
78 | 78 | ],video,videoWidth,videoHeight,i=0; |
79 | 79 | var iqiyi=location.hostname.indexOf("iqiyi.com")!=-1; |
| 80 | + var yinyuetai=location.hostname.indexOf("v.yinyuetai.com")!=-1; |
80 | 81 | var vipVideoCrackJump=GM_getValue("vipVideoCrackJump"); |
81 | 82 | var vipVideoCrackEmbed=GM_getValue("vipVideoCrackEmbed"); |
82 | 83 | var vipVideoCrackUrl=GM_getValue("vipVideoCrackUrl"); |
|
112 | 113 | }else{ |
113 | 114 | vipVideoCrackUrl=value; |
114 | 115 | GM_setValue("vipVideoCrackUrl",vipVideoCrackUrl); |
115 | | - if(video.parentNode)video.parentNode.replaceChild(placeholder,video); |
| 116 | + if(video.parentNode && !yinyuetai)video.parentNode.replaceChild(placeholder,video); |
116 | 117 | } |
117 | 118 | if(!vipVideoCrackEmbed || !embedCrack(url)){ |
118 | 119 | window.open(url); |
|
151 | 152 | var url=value.replace("%s",(iqiyi?location.href.replace(/#.*/,""):location.href)); |
152 | 153 | if(!vipVideoCrackEmbed || !embedCrack(url)){ |
153 | 154 | GM_openInTab(url,false); |
154 | | - if(video.parentNode)video.parentNode.replaceChild(placeholder,video); |
| 155 | + if(video.parentNode && !yinyuetai)video.parentNode.replaceChild(placeholder,video); |
155 | 156 | } |
156 | 157 | } |
157 | 158 | } |
|
193 | 194 | videoWidth=videoStyle.width; |
194 | 195 | videoHeight=videoStyle.height; |
195 | 196 | var videoParent=video.parentNode; |
196 | | - if(location.hostname.indexOf("v.yinyuetai.com")!=-1){ |
| 197 | + if(yinyuetai){ |
197 | 198 | videoParent.parentNode.style.position="absolute"; |
| 199 | + videoStyle=getComputedStyle(videoParent.parentNode, null); |
| 200 | + videoWidth=videoStyle.width; |
| 201 | + videoHeight=videoStyle.height; |
198 | 202 | } |
199 | 203 | videoParent.appendChild(crackArea); |
200 | 204 | placeholder.style.lineHeight=getComputedStyle(videoParent).height; |
|
0 commit comments