Skip to content

Commit dd90b48

Browse files
committed
fix for youku
1 parent f6192e7 commit dd90b48

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

VIP Video Cracker/VIP Video Cracker.user.js

Lines changed: 8 additions & 8 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.8
5+
// @version 1.6.9
66
// @description 解析并破解各大视频站的VIP权限
77
// @description:en Crack VIP permissions of some chinese video sites
88
// @author hoothin
@@ -192,6 +192,12 @@
192192
});
193193
if(video){
194194
clearInterval(si);
195+
var videoStyle=unsafeWindow.getComputedStyle(video, null);
196+
videoWidth=videoStyle.width;
197+
videoHeight=videoStyle.height;
198+
var videoParent=video.parentNode;
199+
videoParent.appendChild(crackArea);
200+
placeholder.style.lineHeight=unsafeWindow.getComputedStyle(videoParent).height;
195201
if(location.hostname.indexOf("v.yinyuetai.com")!=-1){
196202
if (!/^https?:\/\/v\.yinyuetai\.com\/video\/h5\//.test(location.href)) {
197203
unsafeWindow.location.href = unsafeWindow.location.href.replace(/^https?:\/\/v\.yinyuetai\.com\/video\//,"http://v.yinyuetai.com/video/h5/");
@@ -204,7 +210,7 @@
204210
},1000);
205211
}
206212
}else if(location.hostname.indexOf("v.youku.com")!=-1){
207-
if(vipVideoCrackEmbed)video.height="90%";
213+
if(vipVideoCrackEmbed)videoHeight="567px";
208214
}else if(iqiyi){
209215
document.querySelector('#widget-dramaseries').addEventListener('click', function(e){
210216
var target=e.target.parentNode;
@@ -224,12 +230,6 @@
224230
crackJump();
225231
});
226232
}
227-
var videoStyle=unsafeWindow.getComputedStyle(video, null);
228-
videoWidth=videoStyle.width;
229-
videoHeight=videoStyle.height;
230-
var videoParent=video.parentNode;
231-
videoParent.appendChild(crackArea);
232-
placeholder.style.lineHeight=unsafeWindow.getComputedStyle(videoParent).height;
233233
if(vipVideoCrackJump){
234234
jumpCheck.checked=true;
235235
}

0 commit comments

Comments
 (0)