{"id":13814503,"url":"https://github.com/ozh/cookieclicker","last_synced_at":"2025-05-16T09:06:00.773Z","repository":{"id":14112759,"uuid":"16817511","full_name":"ozh/cookieclicker","owner":"ozh","description":"Cookie Clicker copy for, errrr, educational purpose.","archived":false,"fork":false,"pushed_at":"2024-08-20T18:22:31.000Z","size":13716,"stargazers_count":215,"open_issues_count":4,"forks_count":795,"subscribers_count":19,"default_branch":"gh-pages","last_synced_at":"2024-10-14T20:38:29.785Z","etag":null,"topics":["cookie","cookie-clicker","cookieclicker","game"],"latest_commit_sha":null,"homepage":"http://ozh.github.io/cookieclicker/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"OpenImageIO/oiio","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ozh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-02-13T21:16:56.000Z","updated_at":"2024-10-10T02:38:20.000Z","dependencies_parsed_at":"2024-08-04T04:05:55.891Z","dependency_job_id":"40c72408-1dcd-4d09-95c9-895bcfa227f3","html_url":"https://github.com/ozh/cookieclicker","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ozh%2Fcookieclicker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ozh%2Fcookieclicker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ozh%2Fcookieclicker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ozh%2Fcookieclicker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ozh","download_url":"https://codeload.github.com/ozh/cookieclicker/tar.gz/refs/heads/gh-pages","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254501557,"owners_count":22081528,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cookie","cookie-clicker","cookieclicker","game"],"created_at":"2024-08-04T04:02:04.607Z","updated_at":"2025-05-16T09:05:55.753Z","avatar_url":"https://github.com/ozh.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# cookieclicker\n\n\u003cimg src=\"img/perfectCookie.png\" width=\"128\"\u003e\n\nThe original game can be found at http://orteil.dashnet.org/cookieclicker/\n\nThis 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\n\n### How to update\n\nIf the original game updates, here is how you can update the mirror:\n\n#### 1. Fetch all new images :\n\nFrom the root,\n\n* `cd img/`\n* `wget --convert-links -O index.html http://orteil.dashnet.org/cookieclicker/img/`\n* `grep -v PARENTDIR index.html | grep '\\[IMG' | grep -Po 'a href=\"\\K.*?(?=\")' | sed 's/\\?.*//' \u003e _imglist.txt`\n* `wget -N -i _imglist.txt -B http://orteil.dashnet.org/cookieclicker/img/`\n\n#### 2. Fetch all new sounds :\n\nSimilarly, from the root :\n\n* `cd snd/`\n* `wget --convert-links -O index.html http://orteil.dashnet.org/cookieclicker/snd/`\n* `grep -v PARENTDIR index.html | grep '\\[SND' | grep -Po 'a href=\"\\K.*?(?=\")' | sed 's/\\?.*//' \u003e _sndlist.txt`\n* `wget -N -i _sndlist.txt -B http://orteil.dashnet.org/cookieclicker/snd/`\n\n#### 3. Fetch all new translations :\n\nSimilarly, from the root :\n\n* `cd loc/`\n* `wget --convert-links -O index.html http://orteil.dashnet.org/cookieclicker/loc/`\n* `grep -v PARENTDIR index.html | grep '\\[  ' | grep -Po 'a href=\"\\K.*?(?=\")' | sed 's/\\?.*//' \u003e _loclist.txt`\n* `wget -N -i _loclist.txt -B http://orteil.dashnet.org/cookieclicker/loc/`\n\n#### 4. Update `js` and `html` files :\n\nFrom the root directory :\n\n* Fetch the updated `index.html` file: `wget -O index.html http://orteil.dashnet.org/cookieclicker/` \n* Fetch the updated `style.css` file: `wget -O style.css http://orteil.dashnet.org/cookieclicker/style.css`\n* Fetch updated `js` files : `wget -N -i _jslist.txt -B http://orteil.dashnet.org/cookieclicker/`\n* Scan `index.html` for any new `\u003cscript src` and also `main.js` for any new local javascript (eg `Game.last.minigameUrl`). If there are new scripts, update the `_jslist.txt` accordingly.\n* In `main.js` there is a call to a remote script we need to modify:\n  * Look for `ajax('/patreon/grab.php'` and replace it with `ajax('grab.txt'`\n  * In the root: `wget -O grab.txt http://orteil.dashnet.org/patreon/grab.php`\n\n#### 5. Report update here :)\n\nIf you happen to update, please make a pull request for others to benefit, thanks!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fozh%2Fcookieclicker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fozh%2Fcookieclicker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fozh%2Fcookieclicker/lists"}