Bypass YouTube age verification

Bypass YouTube age verification without logging in.

< 腳本Bypass YouTube age verification的回應

提問/評論

§
發表於:2016-12-01

Fullscreen is unavailible on youtube

https://www.youtube.com/results?search_query=deadpool+reband+trailer

Fullscreen is unavailible on youtube then click on the first video. The trailer can't go into fullscreen for some reason. Config is latest Firefox plus your script.

Thanks for the script.

§
發表於:2016-12-18

videos will not play full screen with it enabled

https://www.reddit.com/r/firefox/comments/5gm26v/bypass_youtube_age_verification_improved/

update please =)

§
發表於:2016-12-19

Yes,when this script enabled,videos will not play fullscreen ->


if(window.document.getElementById("watch7-player-age-gate-content"))
{
var videoid = window.location.search.substr(window.location.search.indexOf("v=") + 2);
if(videoid.indexOf("&") > -1)
{
videoid = videoid.substr(0, videoid.indexOf("&"));
}
videoid = decodeURIComponent(videoid);
window.document.getElementById("player-api").remove();
var playerparent = window.document.getElementById("player-unavailable");
var playerframe = window.document.createElement("iframe");
playerframe.setAttribute("src", "//www.youtube.com/embed/" + videoid + "?autoplay=1&showinfo=0");
playerframe.setAttribute("id", "player-frame");
playerframe.setAttribute("style", "position:absolute; z-index:99999; width:100%; height:100%;");
playerparent.appendChild(playerframe);
}


P.S. How fix it?

and Thanks for the script :smile:

§
發表於:2017-03-06

to add full screen just change

playerframe.setAttribute("style", "position:absolute; z-index:99999; width:100%; height:100%;");
playerparent.appendChild(playerframe);

to

playerframe.setAttribute("style", "position:absolute; z-index:99999; width:100%; height:100%;");
playerframe.setAttribute("allowfullscreen", "true");
playerparent.appendChild(playerframe);

發表回覆

登入以回覆

QingJ © 2025

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