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

댓글 남기기

댓글을 남기려면 로그인하세요.