The original game can be found at http://orteil.dashnet.org/cookieclicker/
This mirror for, errrr, like, educational purpose, either to download for your own offline education or to be played online from http://ozh.github.io/cookieclicker/ if you cannot "educate" yourself on the original URL
If the original game updates, here is how you can update the mirror:
From the root,
cd img/
wget --convert-links -O index.html http://orteil.dashnet.org/cookieclicker/img/
grep -v PARENTDIR index.html | grep '\[IMG' | grep -Po 'a href="https://github.com/ozh/cookieclicker/blob/gh-pages/\K.*?(?=")' | sed 's/\?.*//' > _imglist.txt
wget -N -i _imglist.txt -B http://orteil.dashnet.org/cookieclicker/img/
Similarly, from the root :
cd snd/
wget --convert-links -O index.html http://orteil.dashnet.org/cookieclicker/snd/
grep -v PARENTDIR index.html | grep '\[SND' | grep -Po 'a href="https://github.com/ozh/cookieclicker/blob/gh-pages/\K.*?(?=")' | sed 's/\?.*//' > _sndlist.txt
wget -N -i _sndlist.txt -B http://orteil.dashnet.org/cookieclicker/snd/
Similarly, from the root :
cd loc/
wget --convert-links -O index.html http://orteil.dashnet.org/cookieclicker/loc/
grep -v PARENTDIR index.html | grep '\[ ' | grep -Po 'a href="https://github.com/ozh/cookieclicker/blob/gh-pages/\K.*?(?=")' | sed 's/\?.*//' > _loclist.txt
wget -N -i _loclist.txt -B http://orteil.dashnet.org/cookieclicker/loc/
js
and html
files :From the root directory :
index.html
file: wget -O index.html http://orteil.dashnet.org/cookieclicker/
style.css
file: wget -O style.css http://orteil.dashnet.org/cookieclicker/style.css
js
files : wget -N -i _jslist.txt -B http://orteil.dashnet.org/cookieclicker/
index.html
for any new <script src
and also main.js
for any new local javascript (eg Game.last.minigameUrl
). If there are new scripts, update the _jslist.txt
accordingly.main.js
there is a call to a remote script we need to modify:
ajax('/patreon/grab.php'
and replace it with ajax('grab.txt'
wget -O grab.txt http://orteil.dashnet.org/patreon/grab.php
If you happen to update, please make a pull request for others to benefit, thanks!