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);

发布留言

登录以发布留言。