Skip to content

Commit e5b3f4a

Browse files
committed
fix
1 parent f6a8dcf commit e5b3f4a

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

VIP Video Cracker/VIP Video Cracker.user.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// @name VIP视频破解
33
// @name:en VIP Video Cracker
44
// @namespace hoothin
5-
// @version 1.6.1
5+
// @version 1.6.2
66
// @description 解析并破解各大视频站的VIP权限
77
// @description:en Crack VIP permissions of some chinese video sites
88
// @author hoothin
@@ -77,6 +77,7 @@
7777
//{name:"百域阁",url:"http://api.svip.baiyug.cn/svip/index.php?url=%s"},
7878
],video,videoWidth,videoHeight,i=0;
7979
var iqiyi=location.hostname.indexOf("iqiyi.com")!=-1;
80+
var yinyuetai=location.hostname.indexOf("v.yinyuetai.com")!=-1;
8081
var vipVideoCrackJump=GM_getValue("vipVideoCrackJump");
8182
var vipVideoCrackEmbed=GM_getValue("vipVideoCrackEmbed");
8283
var vipVideoCrackUrl=GM_getValue("vipVideoCrackUrl");
@@ -112,7 +113,7 @@
112113
}else{
113114
vipVideoCrackUrl=value;
114115
GM_setValue("vipVideoCrackUrl",vipVideoCrackUrl);
115-
if(video.parentNode)video.parentNode.replaceChild(placeholder,video);
116+
if(video.parentNode && !yinyuetai)video.parentNode.replaceChild(placeholder,video);
116117
}
117118
if(!vipVideoCrackEmbed || !embedCrack(url)){
118119
window.open(url);
@@ -151,7 +152,7 @@
151152
var url=value.replace("%s",(iqiyi?location.href.replace(/#.*/,""):location.href));
152153
if(!vipVideoCrackEmbed || !embedCrack(url)){
153154
GM_openInTab(url,false);
154-
if(video.parentNode)video.parentNode.replaceChild(placeholder,video);
155+
if(video.parentNode && !yinyuetai)video.parentNode.replaceChild(placeholder,video);
155156
}
156157
}
157158
}
@@ -193,8 +194,11 @@
193194
videoWidth=videoStyle.width;
194195
videoHeight=videoStyle.height;
195196
var videoParent=video.parentNode;
196-
if(location.hostname.indexOf("v.yinyuetai.com")!=-1){
197+
if(yinyuetai){
197198
videoParent.parentNode.style.position="absolute";
199+
videoStyle=getComputedStyle(videoParent.parentNode, null);
200+
videoWidth=videoStyle.width;
201+
videoHeight=videoStyle.height;
198202
}
199203
videoParent.appendChild(crackArea);
200204
placeholder.style.lineHeight=getComputedStyle(videoParent).height;

0 commit comments

Comments
 (0)