Git Product home page Git Product logo

cookieclicker's Introduction

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 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="\K.*?(?=")' | sed 's/\?.*//' > _imglist.txt
  • wget -N -i _imglist.txt -B http://orteil.dashnet.org/cookieclicker/img/

2. Fetch all new sounds :

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="\K.*?(?=")' | sed 's/\?.*//' > _sndlist.txt
  • wget -N -i _sndlist.txt -B http://orteil.dashnet.org/cookieclicker/snd/

3. Fetch all new translations :

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="\K.*?(?=")' | sed 's/\?.*//' > _loclist.txt
  • wget -N -i _loclist.txt -B http://orteil.dashnet.org/cookieclicker/loc/

4. Update js and html files :

From the root directory :

  • Fetch the updated index.html file: wget -O index.html http://orteil.dashnet.org/cookieclicker/
  • Fetch the updated style.css file: wget -O style.css http://orteil.dashnet.org/cookieclicker/style.css
  • Fetch updated js files : wget -N -i _jslist.txt -B http://orteil.dashnet.org/cookieclicker/
  • Scan 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.
  • In main.js there is a call to a remote script we need to modify:
    • Look for ajax('/patreon/grab.php' and replace it with ajax('grab.txt'
    • In the root: wget -O grab.txt http://orteil.dashnet.org/patreon/grab.php

5. Report update here :)

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

cookieclicker's People

Contributors

delivator avatar dylanjtholen avatar gooderist0x1 avatar lugixion avatar ozh avatar qfoxb avatar techdude520 avatar thatone-idiot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cookieclicker's Issues

[FEATURE] Add open graph tags in website

Issue Description

I would like to request that Open Graph tags be added to website to improve the way it is shared on social media. These tags help provide information to social media platforms like Facebook, Twitter, and LinkedIn, and can improve the way our website appears when it is shared.

Proposed Solution

I would like to add the following Open Graph tags to our website:

<meta property="og:title" content="Website Title">
<meta property="og:description" content="Website description">
<meta property="og:image" content="https://example.com/image.jpg">
<meta property="og:url" content="https://example.com">

The og:title tag would be used to specify the title of the website, the og:description tag would be used to provide a brief description of the website, the og:image tag would be used to specify the image to use when the website is shared, and the og:url tag would be used to specify the URL of the website.

Additional Information

Please let me know if you have any questions or concerns about adding these Open Graph tags. I believe that this change would improve the way, the website is shared on social media and help increase online presence.

Beta no work

I want to play dungeons lol. also, latest version when?

Doesn't Load

I'm a coding noob and I probably have to do something to make it run, but I also think that I'm not very stoopid.

Just won't load on my cheapo school chromebook is all

How to remove "Oops Wrong Address" dialog?

Hello! I was wondering how I would be able to bypass the dialog that appears when hosting cookie clicker on a website other than it's official one. I'm trying to host it on Glitch for an unblocked games site, but this damn popup doesn't go away. Can someone help me out please? The web address I'm hosting it on is https://cookieclicker-ubh.glitch.me
com oculus shellenv-20221213-161401

Yes, I'm doing it in VR. I typed this in VR

"Oops! Wrong domain!"

I got this message when I embedded a github pages from a forked repository to a google site. Anybody got a fix?

Question please

Hello, I have a question about this script.
Is it free? Can I just use it? (If I translated it from English to any other national language)
Or do I have to pay attention to something?
I do not intend to use it commercially in any way.
I look forward to your response.
Best regards, thank you.

P.S .: Does a certain PHP version have to be available for this?

blocked on my school computer

My school blocks all github.io links, can you move it to a custom domain to evade that?

If not, how do I download this repository as a zip or smth so I can play it locally?

It is blocked at my school

i cant access the website at all and its the only github one that ive found that is uptodate version wise but i cant access it so i cant use it i dont know how you will solve this issue but i cant use it

Updating

When attempting to update the files on my system, the third wget command fails to download the files. It kept giving this message:
http://orteil.dashnet.org/cookieclicker/snd/spellFail.mp3spellFail.mp3%3C/a%3E%3C/td%3E%3Ctd%20align=%22right%22%3E2017-07-06%2014:29%20%20%3C/td%3E%3Ctd%20align=%22right%22%3E Reusing existing connection to orteil.dashnet.org:80. HTTP request sent, awaiting response... 404 Not Found 2022-06-02 07:16:42 ERROR 404: Not Found.
This also shows when downloading the images. I am copy and pasting the commands from the readme, so if someone could tell me why it won't download that would be great. Thank you

2.031

I know that you might be doing other things, but could you please update this cookie clicker if you can.

School blocked it

Could you make a backup website in case this happens for other people and me. I need it for my educational purpose as I can not learn without Cookie Clicker

Update to v.2.029

Hello! I doubt you check this anymore or are interested in updating it but if you could find the time to update this mirror to v.2.029, I would greatly appreciate it. I tried following the instructions in the readme and it didn't go very well, I'm pretty bad with the terminal. Thanks!

not loading

The Cookie Clicker is stuck on the loading screen. It says it's taking longer than expected.

Um...

Okay, so... is there a way to make the game actually work? Because all I'm getting is the loading page and saying it's taking longer than expected. What coding should I add to get it to actually work like the real game???

How did you make the http save slot work?

Because you're using the default GitHub Pages domain (github.io), and because github.io force redirects to https://, I'm curious as to how you managed to get the http:// save slot working.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.