Forum Discussion

sneakypoo's avatar
sneakypoo
Honored Guest
11 years ago

Greasemonkey script to enable the full window youtube button

I finally got fed up with not being able to click the fullscreen button on embedded Youtube vids on this forum so I wrote a tiny little Greasemonkey script to re-enable it. Since userscripts.org is dead I'll just copy paste the whopping two lines of code here for those who want it.


// ==UserScript==
// @name OculusDevForums - Enable fullscreen youtube
// @namespace oculus
// @include https://developer.oculusvr.com/forums/viewtopic.php*
// @require http://code.jquery.com/jquery-1.9.0.min.js
// @version 1
// @grant none
// ==/UserScript==

$("object[data^='https://www.youtube']").each(function (){
$(this).append("<param name='allowFullScreen' value='true'>");
})

1 Reply