Last active
January 22, 2020 16:37
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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