Skip to content

Cookie Clicker copy for, errrr, educational purpose.

Notifications You must be signed in to change notification settings

tidle/cookieclicker

This branch is 17 commits behind ozh/cookieclicker:gh-pages.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

fe3ae14 · Nov 5, 2021

History

26 Commits
Dec 29, 2020
Oct 11, 2020
Feb 13, 2014
Oct 11, 2020
Feb 13, 2014
Feb 13, 2014
Feb 13, 2014
Feb 14, 2014
Nov 5, 2021
Nov 7, 2020
Nov 7, 2020
Nov 7, 2020
Nov 7, 2020
Nov 7, 2020
Nov 7, 2020
Oct 11, 2020

Repository files navigation

cookieclicker

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

How to update

If the original game updates, here is how you can update the mirror:

1. Fetch all new images :

from the /img/ directory :

  • wget --convert-links -O index.html http://orteil.dashnet.org/cookieclicker/img/
  • grep -v PARENTDIR index.html | grep -o '/img/*[a-zA-ZA-z]*.*"' | sed 's/\/img\///' | sed 's/"//' >list.txt
  • wget -N -i list.txt -B http://orteil.dashnet.org/cookieclicker/img/

2. Fetch all new sounds :

Similarly, from the /snd/ directory :

  • wget --convert-links -O index.html http://orteil.dashnet.org/cookieclicker/snd/
  • grep -v PARENTDIR index.html | grep -o '/snd/*[a-zA-ZA-z]*.*"' | sed 's/\/snd\///' | sed 's/"//' >list.txt
  • wget -N -i list.txt -B http://orteil.dashnet.org/cookieclicker/snd/

3. Update js and html files :

From the root directory :

  • Fetch updated js files : wget -N -i list.txt -B http://orteil.dashnet.org/cookieclicker/
  • Fetch the updated index.html file
  • Scan index.html for any new <script src and also main.js for any new local javascript (eg Game.last.minigameUrl)

4. Report update here :)

If you happen to update, please make a pull request for others to benefit, thanks!

About

Cookie Clicker copy for, errrr, educational purpose.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 88.5%
  • HTML 6.5%
  • CSS 5.0%