for browsers that don't support navigator.getGamepads()
// ==UserScript== // @name getGamepads not supported fix // @namespace http://bzzzzdzzzz.blogspot.com/ // @description for browsers that don't support navigator.getGamepads() // @author BZZZZ // @include * // @version 0.1 // @grant none // @run-at document-start // ==/UserScript== if(typeof window.navigator.getGamepads!=="function")window.navigator.getGamepads=window.Array;