Skip to content

Instantly share code, notes, and snippets.

@QNimbus
Last active January 22, 2020 16:37
Show Gist options
  • Save QNimbus/09f036615ced9f873a5b3d16849b6a91 to your computer and use it in GitHub Desktop.
Save QNimbus/09f036615ced9f873a5b3d16849b6a91 to your computer and use it in GitHub Desktop.
TamperMonkey script to enable double-click of mousebutton to switch Stadia to fullscreen mode
// ==UserScript==
// @name Stadia Fullscreen
// @namespace Stadia
// @version 0.3
// @description Will force fullscreen on any Stadia launch URL for the first click.
// @author EricLowry
// @include /^https:\/\/stadia\.google\.com\/(u\/[0-9]+\/)?player\/.+/
// @grant none
// @downloadURL https://gist.github.com/QNimbus/09f036615ced9f873a5b3d16849b6a91
// ==/UserScript==
(function() {
document.body.addEventListener('click', fsTrigger, true);
function fsTrigger() {
document.body.requestFullscreen();
document.body.removeEventListener('click', fsTrigger, true);
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment