t rex runner
1.0.0
This is an updated version of the t-rex-runner game, originally extracted by wayou/t-rex-runner
source from chromium
You can find a online version at https://litetex.github.io/t-rex-runner/
Unfortunately it's only possible to run the code on a webserver.
You can find the exact reason here
A simple predefined image exists at DockerHub
However here is a quick setup if you wan't to build it yourself using docker
docker build -t my-trex-runner-demo .
docker run --rm -it --name trex-runner-demo -p 8080:80 my-trex-runner-demo
Ctrl + C
or by runningdocker rm -f trex-runner-demo
All in one:
docker build -t my-trex-runner-demo . && docker run --rm -it --name trex-runner-demo -p 8080:80 my-trex-runner-demo
git clone --depth 1 --branch master https://chromium.googlesource.com/chromium/src
components/neterror
and components/security_interstitials
are required, so let's extract themneterror.js
and replace it at the end of the body with a simple <script>new Runner('.interstitial-wrapper');</script>
offline.js
by removing external dependencies or merging them into the fileloadTimeData
is only used to determine if the game should be disabled, which we totally don't need<script>const HIDDEN_CLASS = 'hidden';</script>
is required