Youtube Unblocker

Automatically forwards country-blocked YouTube videos to clipzag.com and unblocks the video.

< 腳本Youtube Unblocker的回應

提問/評論

§
發表於:2017-09-01
編輯:2017-09-01

Update for New YT Design

Script is not working on the new YT design. A potential fix for this might be:

setTimeout(function() {
var player = document.getElementsByTagName('ytd-watch');
for (var i = 0; i < player.length; ++i) {
if (player[i].getAttribute('player-unavailable') === "") {
location.assign('https://eachvideo.com/watch' + location.search);
}
}
},1200);

This also does not require the jquery library in the metadata.

Thanks!

drhouse作者
§
發表於:2017-09-01
編輯:2017-09-02

hey, thx for the suggestion... here's the code I added so it'll also work with the new design:

if ($('ytd-watch').attr('player-unavailable')==="") {
    location.replace('https://eachvideo.com/watch' + location.search);
    }

發表回覆

登入以回復

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址