ozh / cookieclicker

Cookie Clicker copy for, errrr, educational purpose.
http://ozh.github.io/cookieclicker/
219 stars 814 forks source link

How to remove "Oops Wrong Address" dialog? #53

Closed TG20YT closed 1 year ago

TG20YT commented 1 year ago

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

kurbus commented 1 year ago

writing code in vr is absolutely insane Why though

crustysoup commented 1 year ago

how did you end up fixing this?

kurbus commented 1 year ago

how did you end up fixing this?

48

SipSup3314 commented 1 year ago

@TG20YT if you go into the main.js file and scroll all the way down and start going up slowly, you can look for the if statement if(top!=self) and remove it. dont remove the code in it, just the if, the else, the Game.ErrorFrame(), and the brackets

your welcome

SipSup3314 commented 1 year ago

for more information, that error occurs when the website is in an iframe, so it can't get copied the glitch webview is an iframe of the website. if you were to go to the website itself in a new tab, it would work completely.. it was mirrored though, so that code is now useless, but they keep it for some reason. if you dont know how to do the fix, send the main.js file in this issue and i can remove it.

ozh commented 1 year ago

There is no "oops wrong address" : http://ozh.github.io/cookieclicker/

Fluffernater commented 1 year ago

The line is 16865, if anyone is here.

Lia-Games commented 1 year ago

@TG20YT if you go into the main.js file and scroll all the way down and start going up slowly, you can look for the if statement if(top!=self) and remove it. dont remove the code in it, just the if, the else, the Game.ErrorFrame(), and the brackets

your welcome

For some reason it just infinitely loads when i do this

Fluffernater commented 1 year ago

@TG20YT if you go into the main.js file and scroll all the way down and start going up slowly, you can look for the if statement if(top!=self) and remove it. dont remove the code in it, just the if, the else, the Game.ErrorFrame(), and the brackets your welcome

For some reason it just infinitely loads when i do this

did you do it on line 16865? theres another one near it that makes it infinitely load

Fri3s commented 1 year ago

@TG20YT if you go into the main.js file and scroll all the way down and start going up slowly, you can look for the if statement if(top!=self) and remove it. dont remove the code in it, just the if, the else, the Game.ErrorFrame(), and the brackets your welcome

For some reason it just infinitely loads when i do this

did you do it on line 16865? theres another one near it that makes it infinitely load

I couldn't find the other one, could you possibly specify the line?

Elephantkid commented 1 year ago

@TG20YT if you go into the main.js file and scroll all the way down and start going up slowly, you can look for the if statement if(top!=self) and remove it. dont remove the code in it, just the if, the else, the Game.ErrorFrame(), and the brackets your welcome

For some reason it just infinitely loads when i do this

did you do it on line 16865? theres another one near it that makes it infinitely load

I couldn't find the other one, could you possibly specify the line?

Remove line 16865, 16866, 16867, 16878. I think you also need to unindent the code which would have been in the brackets but not too sure about that.

ImmediateMurderProfessionals commented 7 months ago

@TG20YT if you go into the main.js file and scroll all the way down and start going up slowly, you can look for the if statement if(top!=self) and remove it. dont remove the code in it, just the if, the else, the Game.ErrorFrame(), and the brackets your welcome

For some reason it just infinitely loads when i do this

did you do it on line 16865? theres another one near it that makes it infinitely load

I couldn't find the other one, could you possibly specify the line?

Remove line 16865, 16866, 16867, 16878. I think you also need to unindent the code which would have been in the brackets but not too sure about that.

Is 16878 the one that says, "if (App && App.loadMods) App.loadMods(launch);"?

SipSup3314 commented 7 months ago

Due to the game being extremely updated since I said this, line 16878 and others are absolutely not correct anymore. If you search (ctrl-f) for “top !== self” and replace that with “true” obviously without quotes on either of them. Happy playing :)

On Wed, Mar 27, 2024 at 14:06 BombCraft @.***> wrote:

@TG20YT https://github.com/TG20YT if you go into the main.js file and scroll all the way down and start going up slowly, you can look for the if statement if(top!=self) and remove it. dont remove the code in it, just the if, the else, the Game.ErrorFrame(), and the brackets your welcome

For some reason it just infinitely loads when i do this

did you do it on line 16865? theres another one near it that makes it infinitely load

I couldn't find the other one, could you possibly specify the line?

Remove line 16865, 16866, 16867, 16878. I think you also need to unindent the code which would have been in the brackets but not too sure about that.

Is 16878 the one that says, "if (App && App.loadMods) App.loadMods(launch);"?

— Reply to this email directly, view it on GitHub https://github.com/ozh/cookieclicker/issues/53#issuecomment-2023455456, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQULFWVISVT4P3GJRG7TQFTY2MDCDAVCNFSM6AAAAAAS5XQWCSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRTGQ2TKNBVGY . You are receiving this because you commented.Message ID: @.***>