Greasy Fork is available in English.

Bypass YouTube age verification

Bypass YouTube age verification without logging in.

< Отзив за Bypass YouTube age verification

Въпрос/коментар

§
Публикуван на: 01.12.2016

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.

§
Публикуван на: 18.12.2016

videos will not play full screen with it enabled

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

update please =)

§
Публикуван на: 19.12.2016

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:

§
Публикуван на: 06.03.2017

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

Публикувайте отговор

Влезте, за да публикувате отговор.