Skip to content

Commit d866fd8

Browse files
committed
fix for yinyuetai
1 parent f7eccef commit d866fd8

1 file changed

Lines changed: 16 additions & 11 deletions

File tree

VIP Video Cracker/VIP Video Cracker.user.js

Lines changed: 16 additions & 11 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.6
5+
// @version 1.6.7
66
// @description 解析并破解各大视频站的VIP权限
77
// @description:en Crack VIP permissions of some chinese video sites
88
// @author hoothin
@@ -64,20 +64,19 @@
6464
{name:"土豪网",url:"http://www.tuhao13.com/yunparse/index.php?url=%s"},
6565
{name:"舞动秋天",url:"http://qtzr.net/s/?qt=%s"},
6666
{name:"97在线看",url:"http://www.97zxkan.com/jiexi/97zxkanapi.php?url=%s"},
67+
{name:"迷失之梦",url:"http://mt2t.com/yun?url=%s",title:"这个解析站似乎不大稳定"},
6768
{name:"无名小站源",url:"http://www.sfsft.com/admin.php?url=%s",title:"无名小站的源"},
6869
{name:"疯狂解析",url:"http://vip.ifkdy.com/?url=%s",title:"仅是简单嵌了47影视云、小海解析等几个解析站"},
6970
{name:"VIP看看",url:"http://2.jx.72du.com/video.php?url=%s",title:"嵌了无名小站的服务"},
7071
{name:"歪歪电影",url:"http://www.yydy8.com/common/?url=%s",title:"嵌了47影视云的服务"},
7172
{name:"梦中人",url:"http://www.wpswan.com/mzr/vipparse/index.php?url=%s",title:"嵌了47影视云的服务"},
72-
{name:"迷失之梦",url:"http://mt2t.com/yun?url=%s",title:"这个解析站似乎不大稳定"},
7373
{name:"71ki解析",url:"http://jx.71ki.com/tong.php?url=%s"},
7474
{name:"CloudParse",url:"http://api.cloudparse.com/?url=%s"},
7575
{name:"10号影院",url:"http://player.gakui.top/?url=%s"},
7676
{name:"PPYPP",url:"http://www.ppypp.com/yunparse/?url=%s"},
77-
//{name:"百域阁",url:"http://api.svip.baiyug.cn/svip/index.php?url=%s"},
77+
{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;
8180
var vipVideoCrackJump=GM_getValue("vipVideoCrackJump");
8281
var vipVideoCrackEmbed=GM_getValue("vipVideoCrackEmbed");
8382
var vipVideoCrackUrl=GM_getValue("vipVideoCrackUrl");
@@ -113,7 +112,7 @@
113112
}else{
114113
vipVideoCrackUrl=value;
115114
GM_setValue("vipVideoCrackUrl",vipVideoCrackUrl);
116-
if(video.parentNode && !yinyuetai)video.parentNode.replaceChild(placeholder,video);
115+
if(video.parentNode)video.parentNode.replaceChild(placeholder,video);
117116
}
118117
if(!vipVideoCrackEmbed || !embedCrack(url)){
119118
unsafeWindow.open(url);
@@ -155,7 +154,7 @@
155154
var url=value.replace("%s",(iqiyi?location.href.replace(/#.*/,""):location.href));
156155
if(!vipVideoCrackEmbed || !embedCrack(url)){
157156
GM_openInTab(url,false);
158-
if(video.parentNode && !yinyuetai)video.parentNode.replaceChild(placeholder,video);
157+
if(video.parentNode)video.parentNode.replaceChild(placeholder,video);
159158
}
160159
}
161160
}
@@ -197,11 +196,17 @@
197196
videoWidth=videoStyle.width;
198197
videoHeight=videoStyle.height;
199198
var videoParent=video.parentNode;
200-
if(yinyuetai){
201-
videoParent.parentNode.style.position="absolute";
202-
videoStyle=unsafeWindow.getComputedStyle(videoParent.parentNode, null);
203-
videoWidth=videoStyle.width;
204-
videoHeight=videoStyle.height;
199+
if(location.hostname.indexOf("v.yinyuetai.com")!=-1){
200+
if (!/^https?:\/\/v\.yinyuetai\.com\/video\/h5\//.test(location.href)) {
201+
unsafeWindow.location.href = unsafeWindow.location.href.replace(/^https?:\/\/v\.yinyuetai\.com\/video\//,"http://v.yinyuetai.com/video/h5/");
202+
}else{
203+
videoParent.parentNode.style.position="absolute";
204+
setTimeout(function(){
205+
videoStyle=unsafeWindow.getComputedStyle(video, null);
206+
videoWidth=videoStyle.width;
207+
videoHeight=videoStyle.height;
208+
},500);
209+
}
205210
}
206211
videoParent.appendChild(crackArea);
207212
placeholder.style.lineHeight=unsafeWindow.getComputedStyle(videoParent).height;

0 commit comments

Comments
 (0)