Tampermonkey scripts
-
Enable access to file system for browser plugin (manage extensions -> Allow access to file URLs)
-
Use only header in plugin script editor with
@requireand@matchrules.// ==UserScript== // @name typeRacerSound // @namespace http://tampermonkey.net/ // @version 0.1 // @description add countdown sound for the last 3 sec. // @author undg // @match https://play.typeracer.com/* // @require file:////home/undg/Code/tampermonkey/typeRacerAudio.js // ==/UserScript==
-
Rest of the script can live in file.
// ==UserScript== // @name typeRacerSound // @namespace http://tampermonkey.net/ // @version 0.1 // @description add countdown sound for the last 3 sec. // @author undg // @match https://play.typeracer.com/* // ==/UserScript== ;(function () { 'use strict' console.log('hello world!') })()