From c133f6bed76c667bcbccf3fefa6118232f75c060 Mon Sep 17 00:00:00 2001 From: Alex Trix Date: Thu, 3 Oct 2019 12:47:36 -0400 Subject: [PATCH] v2.021 beta (modified) Modified to remove http https switching feature for the website to work. --- js/main.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/js/main.js b/js/main.js index 76be5a6..a6e60b2 100644 --- a/js/main.js +++ b/js/main.js @@ -569,7 +569,7 @@ Game.Launch=function() Game.version=VERSION; Game.beta=BETA; if (window.location.href.indexOf('/beta')>-1) Game.beta=1; - Game.https=(location.protocol!='https:')?false:true; + //Game.https=(location.protocol!='https:')?false:true; Game.mobile=0; Game.touchEvents=0; //if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) Game.mobile=1; @@ -1160,7 +1160,7 @@ Game.Launch=function() Game.SaveTo='CookieClickerGame'; if (Game.beta) Game.SaveTo='CookieClickerGameBeta'; - l('versionNumber').innerHTML='v. '+Game.version+'
'+(Game.beta?' beta':''); + l('versionNumber').innerHTML='v. '+Game.version+(Game.beta?' beta':''); if (Game.beta) {var me=l('linkVersionBeta');me.parentNode.removeChild(me);} else if (Game.version==1.0466) {var me=l('linkVersionOld');me.parentNode.removeChild(me);} @@ -1664,13 +1664,13 @@ Game.Launch=function() } - - Game.attachTooltip(l('httpsSwitch'),'
You are currently playing Cookie Clicker on the '+(Game.https?'HTTPS':'HTTP')+' protocol.
The '+(Game.https?'HTTP':'HTTPS')+' version uses a different save slot than this one.
Click this lock to reload the page and switch to the '+(Game.https?'HTTP':'HTTPS')+' version!
','this'); + //Removed for the website to work. + /*Game.attachTooltip(l('httpsSwitch'),'
You are currently playing Cookie Clicker on the '+(Game.https?'HTTPS':'HTTP')+' protocol.
The '+(Game.https?'HTTP':'HTTPS')+' version uses a different save slot than this one.
Click this lock to reload the page and switch to the '+(Game.https?'HTTP':'HTTPS')+' version!
','this'); AddEvent(l('httpsSwitch'),'click',function(){ PlaySound('snd/pop'+Math.floor(Math.random()*3+1)+'.mp3',0.75); if (location.protocol=='https:') location.href='http:'+window.location.href.substring(window.location.protocol.length); else if (location.protocol=='http:') location.href='https:'+window.location.href.substring(window.location.protocol.length); - }); + });*/ Game.attachTooltip(l('topbarOrteil'),'
Back to Orteil\'s subdomain!
Lots of other games in there!
','this'); Game.attachTooltip(l('topbarDashnet'),'
Back to our homepage!
','this');