To enable it in Firefox:
(1) Open a new tab, tap the address bar and type about:config and press Enter or tap the go arrow. I recommend bookmarking this for future ease of access.
(2) In the Search Settings box, type script and press Enter.
You're done with about:config.
You can put that code in a page and save it as .html