你正在訪問的內容是外部程式的映像位址,僅用於使用者加速訪問,本站無法保證其可靠性。當前的連結位址(單點即可複製)為 https://greasyfork.org.cn/zh-CN/scripts/9062-youtube-unblocker/discussions/3230,源站連結 點此以跳轉。
Automatically forwards country-blocked YouTube videos to youtubeunblocked.live - then press 'Go!'
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);
}
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!