Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name isekeb's Mod
- // @namespace http://tampermonkey.net/
- // @version 0.4
- // @description Multiple FRHD tools
- // @author 1s3k3b
- // @include /^https?:\/\/(www\.)?freeriderhd\.com\//
- // @require https://raw.githubusercontent.com/eligrey/FileSaver.js/master/dist/FileSaver.min.js
- // @require https://raw.githubusercontent.com/adamwdraper/Numeral-js/master/numeral.js
- // @require https://unpkg.com/[email protected]/umd/string-similarity.min.js
- // @require https://raw.githubusercontent.com/Stuk/jszip/master/dist/jszip.min.js
- // @grant none
- // ==/UserScript==
- (function main(){const _0x462ee0=window['location']['href'],_0x3ac979=setInterval(()=>{_0x462ee0!==window['location']['href']&&(clearInterval(_0x3ac979),main());},0x1);console['log']('[isekebMod]\x20running');class _0x5351d6{get['parsed'](){return Object['fromEntries'](document['cookie']['split'](';\x20')['map'](_0x9784f8=>_0x9784f8['split']('='))['filter'](([_0x5f5a95],_0x384328,_0x1b7af5)=>_0x1b7af5['findIndex'](([_0x59103d])=>_0x59103d===_0x5f5a95)===_0x384328));}['get'](_0x48d3b6){return this['parsed'][_0x48d3b6];}['has'](_0x6af890){return Object['prototype']['hasOwnProperty']['bind'](this['parsed'])(_0x6af890);}['set'](_0x2c04ec,_0x7e2cc6){document['cookie']=_0x2c04ec+'='+_0x7e2cc6;return this['parsed'];}}const _0x5f55b1=new _0x5351d6();let _0x12c66a;(function(_0x3e8624){_0x3e8624[_0x3e8624['PHYSICS']=0x0]='PHYSICS';_0x3e8624[_0x3e8624['SCENERY']=0x1]='SCENERY';_0x3e8624[_0x3e8624['POWERUP']=0x2]='POWERUP';_0x3e8624[_0x3e8624['VEHICLE_POWERUP']=0x3]='VEHICLE_POWERUP';}(_0x12c66a||(_0x12c66a={})));let _0x7c8f2b;(function(_0x4adeb5){_0x4adeb5[_0x4adeb5['HELI']=0x0]='HELI';_0x4adeb5[_0x4adeb5['TRUCK']=0x1]='TRUCK';_0x4adeb5[_0x4adeb5['BALLOON']=0x2]='BALLOON';_0x4adeb5[_0x4adeb5['BLOB']=0x3]='BLOB';}(_0x7c8f2b||(_0x7c8f2b={})));const _0x24e5a0={'T':'star','C':'checkpoint','B':'boost','G':'gravity','S':'slowmo','O':'bomb','A':'anti-gravity','W':'teleport','V':'vehicle'},_0x3b304e=(_0x9fae91,_0x1981ad)=>{if(_0x9fae91['length']<=_0x1981ad)return[_0x9fae91];const _0x4e0ca8=[];const _0x40584c=Math['ceil'](_0x9fae91['length']/_0x1981ad);for(let _0x32452b=0x0;_0x32452b<_0x40584c;_0x32452b++)_0x4e0ca8[_0x32452b]=_0x9fae91['slice'](_0x32452b*_0x1981ad,(_0x32452b+0x1)*_0x1981ad);return _0x4e0ca8;},_0x152306=_0xa12d63=>{const _0x4b5b2f=_0xa12d63['split']('#');const _0x635989=[];const _0x4773af=[];const _0x3039fd=[];for(let _0x5c0cf8=0x0;_0x5c0cf8<0x3;_0x5c0cf8++){const _0x3b1725=_0x4b5b2f[_0x5c0cf8];if(_0x5c0cf8<0x2){for(const [_0x185ae8,_0x316c1f,_0xd86766,_0x21cd22,..._0x4e5a7b]of _0x3b1725['split'](',')['map'](_0x2037d6=>_0x2037d6['split']('\x20')['map'](_0x5381ab=>parseInt(_0x5381ab,0x20)))){if(_0x185ae8||_0x185ae8===0x0)(_0x5c0cf8?_0x4773af:_0x635989)['push'](_0x4e5a7b['length']?{'type':_0x5c0cf8,'curve':!![],'coords':[[_0x185ae8,_0x316c1f],[_0xd86766,_0x21cd22],..._0x3b304e(_0x4e5a7b,0x2)]}:{'type':_0x5c0cf8,'x':_0x185ae8,'y':_0x316c1f,'x2':_0xd86766,'y2':_0x21cd22});}continue;}for(const [_0x24652c,_0x3105f4,_0x49dd32,_0x195163,_0x4371b8]of _0x3b1725['split'](',')['map'](_0x447ff9=>_0x447ff9['split']('\x20')['map']((_0x20a888,_0x3c7661)=>_0x3c7661&&_0x3c7661!==0x3?parseInt(_0x20a888,0x20):_0x20a888))){const _0x3f020d={'type':0x2,'powerupTypeRaw':_0x24652c,'powerupType':_0x24e5a0[_0x24652c],'x':_0x3105f4,'y':_0x49dd32};if(['B','G']['includes'](_0x24652c))_0x3f020d['deg']=parseInt(_0x195163,0x20);_0x24652c==='V'&&(_0x3f020d['vehicleTypeRaw']=parseInt(_0x195163),_0x3f020d['vehicleType']=_0x7c8f2b[parseInt(_0x195163)-0x1],_0x3f020d['duration']=_0x4371b8);_0x3039fd['push'](_0x3f020d);}}return{'physics':_0x635989,'scenery':_0x4773af,'powerups':_0x3039fd};},_0x4ab8e3=async(_0x1187f1,_0x301b30)=>{for(let _0x175e87=0x1;_0x175e87<0xf92;_0x175e87++){const _0xcfbe2=await fetch('https://www.freeriderhd.com/leaderboards/'+_0x1187f1+'/lifetime/'+_0x175e87+'?ajax=true')['then'](_0x2cb9ef=>_0x2cb9ef['json']());const _0x58ffea=_0xcfbe2['leaderboard']['find'](_0xe6e37b=>_0xe6e37b['user']['u_name']===_0x301b30['toLowerCase']()&&_0xe6e37b['place']!=='--');if(_0x58ffea)return[_0x58ffea['place'],_0x175e87];}},_0x534205=()=>fetch('https://www.freeriderhd.com/u/BHRtracks?ajax=true')['then'](_0x4b5bb1=>_0x4b5bb1['json']())['then'](_0x2a857a=>_0x2a857a['created_tracks']['tracks'])['then'](_0x20d083=>Object['fromEntries']([...new Set(_0x20d083['map'](({title})=>(title['match'](/^.+ by (.+)$/)||[])[0x1])['filter'](_0x220ab4=>_0x220ab4))]['map'](_0x217611=>[_0x217611,_0x20d083['filter'](_0x4c7839=>_0x4c7839['title']['toLowerCase']()['endsWith']('by\x20'+_0x217611['toLowerCase']()))]))),_0x429431=async()=>{const _0x1ccb0a=_0x2a3744=>fetch('https://www.freeriderhd.com/track_api/load_leaderboard',{'headers':{'content-type':'application/x-www-form-urlencoded;\x20charset=UTF-8'},'body':'t_id='+_0x2a3744,'method':'POST'})['then'](_0x477ff0=>_0x477ff0['json']())['then'](_0x234ff6=>_0x234ff6['track_leaderboard']['slice'](0x0,0xa)['map'](_0x189dbe=>_0x189dbe['user']));const _0x32c68a=_0x50666f=>fetch('https://www.freeriderhd.com/u/'+_0x50666f+'?ajax=true')['then'](_0xcd446=>_0xcd446['json']())['then'](_0x4b4847=>[_0x4b4847['user'],..._0x4b4847['friends']['friends_data']]);const _0x42beda=_0x12d99b=>fetch('https://www.freeriderhd.com/'+_0x12d99b+'?ajax=true')['then'](_0x1fa165=>_0x1fa165['json']())['then'](_0x2644dc=>Promise['all'](_0x2644dc['tracks']['map'](_0x506fcf=>_0x32c68a(_0x506fcf['author_slug']))));return(await Promise['all'](['trending','hot','featured','recently-added']['map'](async _0x1b22b4=>[...await _0x42beda(_0x1b22b4),...await _0x1ccb0a(+_0x1b22b4['slug'])])))['filter']((_0x5d0b1c,_0x433874,_0x3a2ca3)=>_0x3a2ca3['findIndex'](_0x568550=>_0x568550['u_name']===_0x5d0b1c['u_name'])===_0x433874)['flat'](0x2);},_0x586b9=()=>_0x429431()['then'](_0x4ce2cc=>_0x4ce2cc[~~(Math['random']()*_0x4ce2cc['length'])]),_0x16571f=_0x49dd10=>fetch(_0x49dd10+'/r/'+GameSettings['user']['u_name']+'?ajax=true')['then'](_0xee0c96=>_0xee0c96['json']())['then'](_0x520d59=>[_0x520d59['race_leaderboard'][0x0]['run_time']||'-:--.--',Object['values'](_0x520d59['subscribe']),Object['values'](_0x520d59['track']),Object['values'](_0x520d59['track_stats'])]),_0x5d00bb=_0x33ba6a=>/^(https?:\/\/)?((([a-z\d]([a-z\d-]*[a-z\d])*)\.?)+[a-z]{2,}|((\d{1,3}\.){3}\d{1,3}))(:\d+)?(\/[-a-z\d%_.~+]*)*(\?[;&a-z\d%_.~+=-]*)?(#[-a-z\d_]*)?$/i['test'](_0x33ba6a)?_0x33ba6a:(_0x49603b=>_0x49603b?'https://cdn.discordapp.com/emojis/'+_0x49603b+'.png':'https://cdn.discordapp.com/emojis/684290040238702612.png')(_0x33ba6a['match'](/\d{17,21}/)),_0x17c1c1=(_0x538d6e,_0x1ae395='',_0x4d8e76='hastebin.com')=>fetch('https://cors-anywhere.herokuapp.com/https://'+_0x4d8e76+'/documents',{'method':'POST','body':_0x538d6e})['then'](_0x368651=>_0x368651['json']())['then'](({key})=>'https://hastebin.com/raw/'+key+(_0x1ae395&&'.'+_0x1ae395))['catch'](()=>_0x4d8e76==='hastebin.com'?_0x17c1c1(_0x538d6e,_0x1ae395,'hasteb.in'):''),_0x3fad0b={...GameSettings['user']['cosmetics']['head']};if(_0x5f55b1['has']('helmet'))GameSettings['user']['cosmetics']['head']=JSON['parse'](_0x5f55b1['get']('helmet'));if(!_0x5f55b1['has']('editghost'))_0x5f55b1['set']('editghost','false');const _0x2994cb=[()=>alert('isekebMod\x20Help\x0a0\x20-\x20This\x20popup\x0a1\x20-\x20Custom\x20hat\x0a2\x20-\x20Toggle\x20scenery\x20lines\x20(you\x20need\x20to\x20zoom\x20out\x20&\x20in\x20after\x20modification)\x0a3\x20-\x20Toggle\x20physics\x20lines\x20(you\x20need\x20to\x20zoom\x20out\x20&\x20in\x20after\x20modification)\x0a4\x20-\x20Rainbow\x20text\x0a5\x20-\x20Toggle\x20autosave\x20(you\x20might\x20need\x20to\x20refresh)\x0a6\x20-\x20Toggle\x20certain\x20features\x20(you\x20might\x20need\x20to\x20refresh)\x0a7\x20-\x20Sort\x20player\x20tracks\x0a8\x20-\x20Track\x20to\x203D\x20(editor\x20only)\x0a9\x20-\x20Track\x20bundling'),async()=>{if(GameSettings['user']['cosmetics']['head']['classname']==='custom')return GameSettings['user']['cosmetics']['head']=_0x3fad0b;const _0x3aef29=_0x49aa30=>'!function()\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x27use\x20strict\x27;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20function\x20e(e)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.createVersion();\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20r\x20=\x20GameInventoryManager.HeadClass,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20o\x20=\x20{},\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20i\x20=\x200,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20v\x20=\x200,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20T\x20=\x20e.prototype\x20=\x20new\x20r,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20img\x20=\x20new\x20Image(90,\x2090);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20T.versionName\x20=\x20\x27\x27,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20T.dirty\x20=\x20!0,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20img.src\x20=\x20\x27'+_0x49aa30+'\x27,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20T.cache\x20=\x20function(e)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20r\x20=\x20o[this.versionName];\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20r.dirty\x20=\x20!1;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20T\x20=\x20105\x20*\x20(e\x20=\x20Math.max(e,\x201))\x20*\x200.25,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20b\x20=\x2091\x20*\x20e\x20*\x200.25,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20u\x20=\x20r.canvas;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20u.width\x20=\x20T,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20u.height\x20=\x20b,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20i\x20=\x20u.width\x20/\x202,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20v\x20=\x20u.height\x20/\x202;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20C\x20=\x20u.getContext(\x272d\x27),\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20z\x20=\x200.25\x20*\x20e;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.colors;\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20C.save();\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20C.scale(z,\x20z);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20C.save();\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20C.translate(0,\x200);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20C.beginPath();\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20C.moveTo(0,\x200);\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20C.beginPath();\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20C.drawImage(img,\x200,\x200,\x2090,\x2090);\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20C.restore();\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20},\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20T.getVersions\x20=\x20function()\x20{\x20return\x20o;\x20},\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20T.getBaseWidth\x20=\x20function()\x20{\x20return\x20105;\x20},\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20T.getBaseHeight\x20=\x20function()\x20{\x20return\x2091;\x20},\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20T.getDrawOffsetX\x20=\x20function()\x20{\x20return\x20-7;\x20},\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20T.getDrawOffsetY\x20=\x20function()\x20{\x20return\x20-3;\x20},\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20T.getScale\x20=\x20function()\x20{\x20return\x200.25;\x20},\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20GameInventoryManager\x20&&\x20GameInventoryManager.register(\x27custom\x27,\x20e),\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20typeof\x20exports\x20!=\x20\x27undefined\x27\x20&&\x20(typeof\x20module\x20!=\x20\x27undefined\x27\x20&&\x20module.exports\x20&&\x20(exports\x20=\x20module.exports\x20=\x20e),\x20exports.Custom\x20=\x20e);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}();',_0x19ddcd=_0x5d00bb(prompt('Emoji\x20URL','https://cdn.discordapp.com/emojis/684290040238702612.png')),_0x61355f={'title':'Custom','cost':'Infinite','classname':'custom','script':await _0x17c1c1(_0x3aef29(_0x19ddcd),'js')};if(confirm('All\x20players'))for(const _0x2390e8 of Array['from']({'length':0x15},(_0x3aeb57,_0x24034e)=>_0x24034e)){if(GameSettings['raceData'])GameSettings['raceData'][_0x2390e8]['user']['cosmetics']['head']=_0x61355f;GameSettings['user']['cosmetics']['head']=_0x61355f;}else GameSettings['user']['cosmetics']['head']=_0x61355f;_0x5f55b1['set']('helmet',JSON['stringify'](_0x61355f));},()=>GameSettings['sceneryLineColor']=GameSettings['sceneryLineColor']==='#ffffff'?'#AAA':'#ffffff',()=>GameSettings['physicsLineColor']=GameSettings['physicsLineColor']==='#ffffff'?'#000':'#ffffff',()=>{const _0x14edc9=prompt('Text','yeet');GameManager['game']['currentScene']['message']['show'](_0x14edc9,0x346f25e9b37534000000000000000000,'#000000',![]);let _0x25d604=0x0;const _0x38c91c=setInterval(()=>{if(GameManager['game']['currentScene']['message']['message']!==_0x14edc9)return clearInterval(_0x38c91c);GameManager['game']['currentScene']['message']['color']='#'+_0x25d604['toString'](0x10);_0x25d604+=0x3;if(_0x25d604===0xffffff)_0x25d604=0x0;},0x1);},()=>(_0x2ab758=>_0x5f55b1['set']('autosave',_0x2ab758==='off'?'off':(_0x2ab758||0x3c)*0x3e8))(prompt('Autosave\x20interval\x20(s/off)',0x3c)),()=>{const _0x1409b2={'editghost':'editor\x20ghosts\x20(broken)','assist':'ghost\x20assistance\x20display','night':'night\x20mode'},_0x7fe70d=prompt('Feature\x20to\x20toggle\x20('+Object['entries'](_0x1409b2)['map'](_0x234213=>_0x234213['join']('\x20=\x20'))['join'](',\x20')+')')['toLowerCase']();if(!_0x1409b2[_0x7fe70d])return alert('Invalid\x20feature\x20name.');_0x5f55b1['set'](_0x7fe70d,!(_0x5f55b1['get'](_0x7fe70d)==='true'))+alert('Successfully\x20'+(_0x5f55b1['get'](_0x7fe70d)==='true'?'enabled':'disabled')+'\x20'+_0x1409b2[_0x7fe70d]+'.\x20You\x20might\x20need\x20to\x20refresh.');},()=>{if(window['location']['href']['split']('/')[0x3]!=='u')return;const _0x3538b5=(_0x51d0be=>_0x51d0be[prompt('Sort\x20by\x20(views,\x20likes,\x20dislikes,\x20date)','views')['toLowerCase']()]||_0x51d0be['views'])({'views':(_0x313c86,_0x4e4bef)=>numeral(_0x313c86[0x3][0x4])['_value']-numeral(_0x4e4bef[0x3][0x4])['_value'],'likes':(_0x566d0a,_0x14bca2)=>numeral(_0x566d0a[0x3][0x6])['_value']-numeral(_0x14bca2[0x3][0x6])['_value'],'dislikes':(_0x4d230d,_0x3ff7f1)=>numeral(_0x4d230d[0x3][0x2])['_value']-numeral(_0x3ff7f1[0x3][0x2])['_value'],'date':(_0x4192d0,_0x35f5d4)=>new Date(_0x4192d0[0x2][0xc])-new Date(_0x35f5d4[0x2][0xc])});Promise['all'](Array['from'](document['querySelectorAll']('#created_tracks\x20li'))['map'](async _0x377596=>[_0x377596,await _0x16571f(_0x377596['querySelector']('.top')['getAttribute']('href'))]))['then'](_0x4206a4=>_0x4206a4['sort']((_0x4ff994,_0x34f3ae)=>_0x3538b5(_0x34f3ae[0x1],_0x4ff994[0x1]))['map'](_0x150f78=>_0x150f78[0x0]))['then'](_0x1111d7=>{document['querySelector']('#created_tracks\x20ul')['childNodes']['forEach'](_0xea3aa4=>_0xea3aa4['parentElement']['removeChild'](_0xea3aa4));for(const _0x41dfa2 of _0x1111d7){document['querySelector']('#created_tracks\x20ul')['appendChild'](_0x41dfa2);}});},()=>{if(window['location']['href']['split']('/')[0x3]!=='create')return;const _0x5ba869=_0x29ee2e=>_0x29ee2e['toString'](0x20),_0x3b6329=GameManager['game']['currentScene']['track']['getCode'](),[_0x2917b7,_0x1d5613,_0x31154a]=_0x3b6329['split']('#'),_0xfdb9f8=_0x152306(_0x3b6329)['physics'],_0x17eb24=+(prompt('Shadow\x20offset','10')||0xa);GameManager['game']['currentScene']['importCode']=_0x2917b7+'#'+_0x1d5613+','+_0xfdb9f8['map'](_0x2fcacf=>_0x2fcacf['curve']?_0x2fcacf['coords']['map'](([_0x1664b2,_0x3ff233])=>_0x5ba869(_0x1664b2)+'\x20'+_0x5ba869(_0x3ff233-_0x17eb24))['join']('\x20'):_0x5ba869(_0x2fcacf['x'])+'\x20'+_0x5ba869(_0x2fcacf['y']-_0x17eb24)+'\x20'+_0x5ba869(_0x2fcacf['x2'])+'\x20'+_0x5ba869(_0x2fcacf['y2']-_0x17eb24))['join'](',')+','+_0xfdb9f8['map'](_0x11c2ec=>_0x11c2ec['curve']?_0x11c2ec['coords']['map'](([_0xb22385,_0x278cec])=>_0x5ba869(_0xb22385)+'\x20'+_0x5ba869(_0x278cec)+'\x20'+_0x5ba869(_0xb22385)+'\x20'+_0x5ba869(_0x278cec-_0x17eb24))['join'](','):_0x5ba869(_0x11c2ec['x'])+'\x20'+_0x5ba869(_0x11c2ec['y'])+'\x20'+_0x5ba869(_0x11c2ec['x'])+'\x20'+_0x5ba869(_0x11c2ec['y2']-_0x17eb24))['join'](',')+'#'+_0x31154a;},async()=>{const {created_tracks:{tracks}}=await fetch('https://www.freeriderhd.com/u/'+GameSettings['user']['u_name']+'?ajax=true')['then'](_0xaa3e88=>_0xaa3e88['json']()),_0x60a5eb=new JSZip();for(const _0x2bb65a of tracks){const _0x22dead=_0x60a5eb['folder'](_0x2bb65a['title']);_0x22dead['file']('code.txt',await fetch('https://cors-anywhere.herokuapp.com/https://cdn.freeriderhd.com/free_rider_hd/tracks/prd/'+_0x2bb65a['id']+'/track-data-v1.js')['then'](_0x261589=>_0x261589['text']())['then'](_0x2d8d8f=>JSON['parse'](_0x2d8d8f['slice'](0x2,-0x2))['code']));_0x22dead['file']('data.json',JSON['stringify'](_0x2bb65a));}_0x60a5eb['generateAsync']({'type':'blob'})['then'](_0x4289f3=>saveAs(_0x4289f3,GameSettings['user']['d_name']+'\x27s\x20Tracks.zip'));}];let _0x344136=!![];window['onkeydown']=_0x4b4f35=>{_0x2994cb[_0x4b4f35['key']]&&(document['activeElement']||{})['nodeName']!=='INPUT'&&_0x344136&&(console['log']('[isekebMod]\x20keypress:\x20'+_0x4b4f35['key']),_0x2994cb[_0x4b4f35['key']]());};setTimeout(async()=>{const _0x534e7c=document['querySelector']('ul.left-nav-large'),_0x53fb97=document['querySelector']('ul.left-nav-small');_0x534e7c['innerHTML']+='<li\x20class=\x22left-nav-item\x20\x22><a\x20href=\x22https://www.freeriderhd.com/bhr\x22><span\x20class=\x22menu_icons\x20menu_icons-icon_browse_tracks\x20\x20\x20leftNavIconPlacement\x22></span>BHR</a></li>';_0x53fb97['innerHTML']+='<li\x20class=\x22left-nav-item-small\x20\x22><a\x20href=\x22https://www.freeriderhd.com/bhr\x22><span\x20class=\x22menu_icons\x20menu_icons-icon_browse_tracks\x20\x20\x20leftNavIconPlacement\x22></span></a></li>';switch(window['location']['href']['match'](/^https?:\/\/(www\.)?freeriderhd\.com\/(\w+)?/)[0x2]){case undefined:case'tracks':case'hot':case'biggest':case'trending':case'recently-added':case'subscriptions':case'highest-rated':case'shuffled':document['querySelectorAll']('.stat')['forEach'](_0x672380=>_0x672380['parentElement']['removeChild'](_0x672380));document['querySelectorAll']('.trackTile')['forEach'](async _0x168875=>{const _0x5f1b9e=_0x168875['querySelector']('.top');if(!_0x5f1b9e)return;const _0x3cc687=Array['from'](document['querySelector']('.slider.slick-initialized.slick-slider')['childNodes'])['includes'](_0x168875),_0x112a44=_0x168875['querySelector']('.bottom'),_0x563613=_0x5f1b9e['querySelector']('.bestTime'),_0x38b970=await _0x16571f(_0x5f1b9e['getAttribute']('href'));_0x563613['innerText']=_0x38b970[0x0]+'\x20•\x20'+_0x563613['innerText'];_0x112a44['innerHTML']+=(_0x3cc687?'<br>':'')+'<p\x20style=\x22color:#000;\x20font-size:\x2090%;\x22>'+_0x38b970[0x2][0x11]+'\x20•\x20'+_0x38b970[0x3][0x4]+'\x20views</p>';});break;case't':_0x534e7c['innerHTML']+='<li\x20class=\x22left-nav-item\x20\x22><a\x20href=\x22https://www.freeriderhd.com/ghostdog/'+GameSettings['track']['id']+'\x22><span\x20class=\x22menu_icons\x20menu_icons-icon_draw_track\x20\x20leftNavIconPlacement\x22></span>Ghostdog</a></li>';_0x53fb97['innerHTML']+='<li\x20class=\x22left-nav-item-small\x20\x22><a\x20href=\x22https://www.freeriderhd.com/ghostdog/'+GameSettings['track']['id']+'\x22><span\x20class=\x22menu_icons\x20menu_icons-icon_draw_track\x20\x20leftNavIconPlacement\x22></span></a></li>';document['querySelectorAll']('.track-list\x20li\x20div')['forEach'](async _0x28f631=>{const _0x4f65fc=_0x28f631['querySelector']('.top');if(!_0x4f65fc)return;const _0x5147d4=_0x28f631['querySelector']('.bottom'),_0x1cb5d9=_0x4f65fc['querySelector']('.bestTime'),_0x5bb466=await _0x16571f(_0x4f65fc['getAttribute']('href'));_0x1cb5d9['innerText']=_0x5bb466[0x0]+'\x20•\x20'+_0x1cb5d9['innerText'];_0x5147d4['innerHTML']+='<a\x20style=\x22color:\x20#000;\x20font-size:\x2090%;\x22>'+_0x5bb466[0x2][0x11]+'\x20•\x20'+_0x5bb466[0x3][0x4]+'\x20views</a>';});if(_0x5f55b1['get']('assist')==='true'){const _0x2829f6=setInterval(()=>{document['querySelector']('table')&&(clearInterval(_0x2829f6),Array['from'](document['querySelectorAll']('table'))['find'](_0x1b3ab6=>_0x1b3ab6['parentElement']['childNodes'][0x1]['innerText']==='GLOBAL\x20BEST\x20TIMES')['querySelectorAll']('[style=\x22text-align:left\x22]')['forEach'](async _0x172bea=>{let [,_0x3a13cb,,_0x1158bb,,,,_0x1f5cca]=_0x172bea['parentElement']['childNodes'];_0x3a13cb=+_0x3a13cb['innerText'];_0x1f5cca=_0x1f5cca['innerText']['split'](':');const {user:{u_id}}=await fetch(_0x1158bb['childNodes'][0x1]['getAttribute']('href')+'?ajax=true')['then'](_0x320669=>_0x320669['json']()),_0x304e2e=await fetch('https://www.freeriderhd.com/track_api/load_races',{'headers':{'accept':'application/json,\x20text/javascript,\x20*/*;\x20q=0.01','accept-language':'en-US,en;q=0.9,hu;q=0.8','content-type':'application/x-www-form-urlencoded;\x20charset=UTF-8','sec-fetch-dest':'empty','sec-fetch-mode':'cors','sec-fetch-site':'same-origin','x-requested-with':'XMLHttpRequest'},'referrer':'https://www.freeriderhd.com/','referrerPolicy':'origin','body':'t_id='+GameSettings['track']['id']+'&u_ids='+u_id+'&ajax=true&t_1=ref&t_2=desk','method':'POST','mode':'cors','credentials':'include'})['then'](_0x16260f=>_0x16260f['json']())['then'](_0x392651=>Object['entries'](JSON['parse'](_0x392651['data'][0x0]['race']['code']))['filter'](([_0x3738ff])=>_0x3738ff['endsWith']('_up'))['map'](([,_0x1ac034])=>_0x1ac034)['flat'](Infinity))['then'](_0x1617df=>_0x1617df['length']-[...new Set(_0x1617df)]['length']),_0x4dfc5b=_0x1f5cca[0x0]==='false'?'HACK,\x20BOT':_0x1f5cca[0x2]==='03'&&_0x3a13cb===0x1&&_0x172bea['parentElement']['parentElement']['childNodes'][0x2]['childNodes'][0x7]['innerText']['split'](':')[0x1]!=='00'?'HACK':_0x1f5cca[0x0]==='INF'||_0x1f5cca[0x0]==='42'?'TAS':_0x304e2e/+_0x1f5cca[0x0]+ +_0x1f5cca[0x1]/0xa>0x14?'MANY\x20DUPLICATE\x20INPUTS':null;_0x172bea['parentElement']['childNodes'][0x7]['innerText']=''+_0x1f5cca['join'](':')+(_0x4dfc5b?'\x20['+_0x4dfc5b+']':'');}));},0x3e8);}if(_0x5f55b1['get']('night')==='true'){const _0x41d4d5=setInterval(()=>{if(document['querySelector']('canvas')){document['querySelector']('canvas')['style']['backgroundColor']='#232323';GameSettings['physicsLineColor']='#ffffff';GameSettings['sceneryLineColor']='#969696';for(const _0x2dca2c of['best_time','best_time_title','goals','time','time_title'])GameManager['game']['currentScene']['score'][_0x2dca2c]['color']='#ffffff';setInterval(()=>{for(const _0x4c231b of[0x3,0x4,0x5])GameManager['game']['currentScene']['score']['stage']['children'][_0x4c231b]['children'][0x0]['alpha']=0x1;GameManager['game']['currentScene']['message']['color']='#ffffff';GameManager['game']['currentScene']['message']['outline']='#000000';for(const _0x35a4a8 of GameManager['game']['currentScene']['score']['stage']['children'][0x1]['children'])_0x35a4a8['children'][0x1]['color']='#ffffff';GameManager['game']['currentScene']['message']['draw']=function(){let _0x4e1f5f=this['message'];const _0x5a3c92=this['timeout'];let _0x1bcf90=this['color'],_0x27e84d=this['outline'];if(_0x5a3c92!==!0x1&&_0x5a3c92<=0x0&&(_0x4e1f5f=!0x1),this['scene']['state']['paused']&&(_0x1bcf90=!0x1,_0x27e84d=!0x1,_0x4e1f5f='Paused\x20-\x20Press\x20Spacebar\x20to\x20Continue'),_0x1bcf90===!0x1&&(_0x1bcf90='#ffffff'),_0x4e1f5f){const _0x515b26=this['scene']['game'],_0x156c07=this['scene'],_0x4db502=_0x515b26['pixelRatio'],_0x4d3b5a=_0x515b26['canvas']['getContext']('2d'),_0x45dd5f=_0x156c07['screen']['center']['x'];let _0x2bcc11=0x64;const _0x8dbb42=_0x156c07['settings'];_0x8dbb42['controls']==='phone'&&(_0x2bcc11=0x50),_0x4d3b5a['save'](),_0x4d3b5a['fillStyle']=_0x1bcf90,_0x4d3b5a['lineWidth']=0x4*(_0x4db502/0x2),_0x4d3b5a['font']=0xc*_0x4db502+'pt\x20helsinki',_0x4d3b5a['textAlign']='center',_0x27e84d&&(_0x4d3b5a['strokeStyle']=_0x27e84d,_0x4d3b5a['strokeText'](_0x4e1f5f,_0x45dd5f,_0x2bcc11*_0x4db502),_0x4d3b5a['strokeStyle']='#000'),_0x4d3b5a['fillText'](_0x4e1f5f,_0x45dd5f,_0x2bcc11*_0x4db502),_0x4d3b5a['restore']();}};},0x64),clearInterval(_0x41d4d5);}},0x3e8);}break;case'u':const _0xad47b9=document['querySelector']('.profile-username\x20h3')['innerText'];Promise['all']([_0x4ab8e3('player',_0xad47b9),_0x4ab8e3('author',_0xad47b9)])['then'](([[_0x3dc34d,_0x1ac43f],[_0x23fe16,_0x314b17]])=>{document['querySelectorAll']('.profile-flex-container\x20span')[0x1]['innerHTML']='<a\x20href=\x22https://www.freeriderhd.com/leaderboards/player/lifetime/'+_0x1ac43f+'\x22>Player\x20#'+_0x3dc34d+'</a>\x20•\x20<a\x20href=\x22https://www.freeriderhd.com/leaderboards/author/lifetime/'+_0x314b17+'\x22>Author\x20#'+_0x23fe16+'</a>';});GameSettings['user']&&(document['querySelector']('.profile-friends-type-tabs')['innerHTML']+='<a\x20onclick=\x22fetch(\x27https://www.freeriderhd.com/u/'+GameSettings['user']['u_name']+'?ajax=true\x27).then(d\x20=>\x20d.json()).then(d\x20=>\x20alert(d.friends.friends_data.map(x\x20=>\x20x.d_name).filter(n\x20=>\x20document.querySelector(`[href=\x5c\x27https://www.freeriderhd.com/u/${n.toLowerCase()}\x5c\x27]`)).join(\x27\x5cn\x27)))\x22>Mutual\x20Friends</a>');case'create':{window['onclick']=_0x158aa7=>_0x344136=!Array['from'](_0x158aa7['target']['classList'])['includes']('editorgui_icons-icon_powerups');let _0x1f47de;const _0x534892=()=>{if(_0x5f55b1['get']('autosave')==='off'||window['location']['href']['match'](/^https?:\/\/(www\.)?freeriderhd\.com\/(\w+)?/)[0x2]!=='create')return;console['log']('[isekebMod]\x20Autosave');const _0x32a016=new Blob([GameManager['game']['currentScene']['track']['getCode']()],{'type':'plain/text'});saveAs(_0x32a016,'frhd-autosave.txt');};if(_0x5f55b1['has']('autosave')&&_0x5f55b1['get']('autosave')!=='off')setInterval(_0x534892,_0x5f55b1['get']('autosave'));setInterval(()=>{_0x5f55b1['has']('autosave')&&_0x5f55b1['get']('autosave')!=='off'&&(window['onbeforeunload']=()=>{_0x534892();return'Auto-exporting\x20track\x20code,\x20please\x20wait...';});if(_0x5f55b1['get']('editghost')==='true'){GameManager['game']['currentScene']['playerManager']['firstPlayer']['_gamepad']['recording']=!![];GameManager['game']['currentScene']['playerManager']['firstPlayer']['_gamepad']['updateRecording']();if(GameManager['game']['currentScene']['playerManager']['firstPlayer']['complete']&&(!_0x1f47de||GameManager['game']['currentScene']['ticks']<_0x1f47de)){_0x1f47de=GameManager['game']['currentScene']['ticks'];const _0x1e07ca=GameManager['game']['currentScene']['playerManager']['createPlayer'](GameManager['game']['currentScene'],GameSettings['user']);_0x1e07ca['setBaseVehicle'](GameManager['game']['currentScene']['playerManager']['firstPlayer']['_baseVehicleType']),_0x1e07ca['setAsGhost']();_0x1e07ca['_gamepad']['loadPlayback'](Object['fromEntries'](Object['entries'](GameManager['game']['currentScene']['playerManager']['firstPlayer']['_gamepad']['records'])['map'](([_0x27c6c8,_0x184f8a])=>[_0x27c6c8,Object['fromEntries'](_0x184f8a['map'](_0x13fc7a=>[_0x13fc7a,0x1]))])),GameSettings['keysToRecord']);_0x1e07ca['_gamepad']['replaying']=![];const _0x5ed96f=setInterval(()=>{!GameManager['game']['currentScene']['playerManager']['firstPlayer']['complete']&&(_0x1e07ca['_gamepad']['replaying']=!![],clearInterval(_0x5ed96f));},0xa);GameManager['game']['currentScene']['playerManager']['addPlayer'](_0x1e07ca);}}const _0x512e0a=document['querySelector']('.ud-uploading-cost');if(_0x512e0a&&_0x512e0a['childNodes']['length']<0x3){const _0x236510=document['createElement']('div'),_0x4f8613=document['createElement']('span'),_0x19ed95=document['createElement']('span');_0x4f8613['innerText']='Remaining\x20coins:\x20',_0x19ed95['innerText']=_0x512e0a['children'][0x1]['children'][0x2]['innerText']-_0x512e0a['children'][0x0]['children'][0x2]['innerText'],_0x19ed95['classList']['add']('num'),_0x236510['appendChild'](_0x4f8613),_0x236510['appendChild'](_0x19ed95),_0x512e0a['appendChild'](_0x236510);}},0x1e);const _0x5d3535=document['createElement']('span'),_0x28a571=()=>_0x5d3535['innerText']=new Blob([GameManager['game']['currentScene']['track']['getCode']()],{'type':'plain/text'})['size']+'\x20Bytes',_0x1e5432=setInterval(()=>{GameManager['game']&&!window['ghostdog']&&(_0x28a571(),clearInterval(_0x1e5432));},0x3e8);_0x5d3535['onclick']=_0x28a571;document['querySelector']('.topMenu')['appendChild'](_0x5d3535);break;}case'leaderboards':{const _0x2b4666=document['querySelector']('form[action=\x22#\x22]'),_0x4272bc=(_0x4a9932=>_0x4a9932['item'](_0x4a9932['selectedIndex'])['innerText']['match'](/(player|author)/i)[0x0]['toLowerCase']())(document['querySelector']('.leaderboard-type\x20select')),_0x1e11ea=document['createElement']('span');_0x1e11ea['style']['color']='white';_0x1e11ea['classList']['add']('leaderboard-timespan');_0x1e11ea['innerText']='Overall\x20sum:\x20'+Array['from'](document['querySelectorAll']('.leaderboard-item-value'))['reduce']((_0x228e09,_0x52acc7)=>_0x228e09+parseInt(_0x52acc7['childNodes'][0x1]['textContent']),0x0);_0x2b4666['appendChild'](_0x1e11ea);const _0x4afc07=document['createElement']('input');_0x4afc07['placeholder']='Search';_0x4afc07['onkeydown']=_0x56cd7b=>{_0x56cd7b['key']==='Enter'&&_0x4ab8e3(_0x4272bc,_0x4afc07['value'])['then'](([,_0x3f2cea])=>{window['location']['href']='https://www.freeriderhd.com/leaderboards/'+_0x4272bc+'/lifetime/'+_0x3f2cea;});};_0x2b4666['appendChild'](_0x4afc07);break;}case'mod':document['querySelectorAll']('.system-page-wrapper\x20*')['forEach'](_0x3e616f=>_0x3e616f['parentElement']['removeChild'](_0x3e616f));document['title']='isekeb\x27s\x20Mod';document['querySelector']('.system-page-wrapper')['innerHTML']='<h1>isekeb\x27s\x20Mod</h1><p>By\x20<a\x20href=\x22https://www.freeriderhd.com/u/isekeb\x22>isekeb\x20/\x20f-o-x\x20/\x201s3k3b</a></p>';break;case'search':const [,,_0x2f02e9='t',_0xe839c8='']=window['location']['href']['match'](/^https?:\/\/(www\.)?freeriderhd\.com\/\w+\/(\w+)?\/?(\w+)?/);if(_0x2f02e9==='u'){document['querySelectorAll']('.system-page-wrapper\x20*')['forEach'](_0x3ed0da=>_0x3ed0da['parentElement']['removeChild'](_0x3ed0da));document['title']='FRHD\x20User\x20Search';const _0x48556a=document['createElement']('ul');_0x48556a['classList']['add']('track-list','clearfix');document['querySelector']('.system-page-wrapper')['appendChild'](_0x48556a);const _0x31fc4b=Math['floor'](Math['sqrt'](_0xe839c8['length'])),_0xdd4142=[];let _0x4d8a9a=_0xe839c8['slice'](0x0,_0x31fc4b);for(const _0x10c8ca of _0xe839c8['slice'](_0x31fc4b)){_0x4d8a9a+=_0x10c8ca;const _0x244932=await fetch('https://www.freeriderhd.com/u/'+_0x4d8a9a+'?ajax=true')['then'](_0x425414=>_0x425414['json']())['catch'](()=>({}));if(_0x244932['user'])_0xdd4142['push'](_0x244932);}for(const {user,user_info:{about:_0x1e7531},user_stats:{tot_pts:_0xf8dafc}}of _0xdd4142){const _0x3c064a=document['createElement']('li');_0x3c064a['innerHTML']='<div><h4><a\x20href=\x22https://www.freeriderhd.com/u/'+user['u_name']+'\x22>'+user['d_name']+'</a></h4><img\x20src=\x22'+user['img_url_medium']+'\x22></img><p>'+(_0x1e7531||'No\x20description\x20set.')+'</p><p>'+_0xf8dafc+'\x20points</p></div>';_0x48556a['appendChild'](_0x3c064a);}}break;case'bhr':{const _0xcb9c9f=(_0x42d43b,_0x20bee3)=>'<div\x20class=\x22track-list-tile\x20trackTile\x22><a\x20class=\x22top\x22\x20href=\x22https://www.freeriderhd.com/t/'+_0x20bee3['slug']+'\x22><img\x20src=\x22'+_0x20bee3['thmb']+'\x22\x20class=\x22track-list-tile-thumb\x20top-image\x22\x20style=\x22position:\x20relative;\x20overflow:\x20hidden;\x20left:\x200;\x20top:\x200;width:\x20100%;\x20z-index:\x201;\x20float:\x20left;\x20border-radius:\x206px;\x22\x20alt=\x22'+_0x20bee3['title']+'\x22></a><div\x20class=\x22bottom\x22><a\x20href=\x22https://www.freeriderhd.com/t/'+_0x20bee3['slug']+'\x22\x20class=\x22name\x22>'+_0x20bee3['title']+'</a><a\x20class=\x22author\x22\x20href=\x22https://www.freeriderhd.com/bhr/'+_0x42d43b+'\x22>'+_0x42d43b+'</a></div></div>';document['querySelectorAll']('.system-page-wrapper\x20*')['forEach'](_0x1016d8=>_0x1016d8['parentElement']['removeChild'](_0x1016d8));document['title']='BHR';const _0x1816b7=await _0x534205();let [,,,,_0x40c802='',_0xb7ae76='']=window['location']['href']['split']('/');_0x40c802=decodeURIComponent(_0x40c802);const _0x89b7e9=Object['entries'](_0x1816b7)['find'](([_0x2a043f])=>_0x2a043f['toLowerCase']()===_0x40c802['toLowerCase']());if(!_0x40c802||!_0x89b7e9&&_0x40c802!=='search'){document['querySelector']('.system-page-wrapper')['innerHTML']=Object['keys'](_0x1816b7)['map'](_0x5acec4=>'<p><a\x20href=\x22https://www.freeriderhd.com/bhr/'+_0x5acec4+'\x22>'+_0x5acec4+'</a></p>')['join']('\x0a');break;}const _0xdcae99=document['createElement']('ul');_0xdcae99['classList']['add']('track-list','clearfix');document['querySelector']('.system-page-wrapper')['appendChild'](_0xdcae99);if(_0x40c802==='search'&&_0xb7ae76){const _0x1b7226=stringSimilarity['findBestMatch'](_0xb7ae76,Object['values'](_0x1816b7)['flatMap'](_0x12680c=>_0x12680c['map'](_0x240ec7=>_0x240ec7['title'])))['ratings']['sort']((_0x297700,_0x578a9f)=>_0x578a9f['rating']-_0x297700['rating'])['slice'](0x0,0xa)['map'](_0x3da2ef=>Object['entries'](_0x1816b7)['find'](([,_0x5a72cb])=>_0x5a72cb['find'](_0x4a046c=>_0x4a046c['title']===_0x3da2ef['target']))['flat'](Infinity));for(const [_0x59f6aa,_0x8b7b8c]of _0x1b7226){const _0x2efd6b=document['createElement']('li');_0x2efd6b['innerHTML']=_0xcb9c9f(_0x59f6aa,_0x8b7b8c);_0xdcae99['appendChild'](_0x2efd6b);}break;}for(const _0x1f9160 of _0x89b7e9[0x1]){const _0x430876=document['createElement']('li');_0x430876['innerHTML']=_0xcb9c9f(_0x89b7e9[0x0],_0x1f9160);_0xdcae99['appendChild'](_0x430876);}break;}case'discord':document['title']='FRHD\x20Discord';window['open']('https://discord.gg/sqCh3AU');break;case'ghostdog':const [,,,,_0x60a8af]=window['location']['href']['split']('/');if(!_0x60a8af||!_0x60a8af['match'](/\d+/))break;const _0x2dbf47=await fetch('https://cors-anywhere.herokuapp.com/https://cdn.freeriderhd.com/free_rider_hd/tracks/prd/'+_0x60a8af['match'](/\d+/)[0x0]+'/track-data-v1.js')['then'](_0x502775=>_0x502775['text']())['then'](_0x10cbc8=>JSON['parse'](_0x10cbc8['slice'](0x2,-0x2))['code'])['catch'](()=>undefined);if(!_0x2dbf47)break;document['title']='Ghostdog';document['body']['style']['width']='100%';document['body']['style']['height']='100%';document['body']['innerHTML']=await fetch('https://www.freeriderhd.com/create')['then'](_0x22c432=>_0x22c432['text']())['then'](async _0x4504e2=>(await new DOMParser()['parseFromString'](_0x4504e2,'text/html'))['body']['innerHTML']);document['querySelector']('[href=\x22https://www.freeriderhd.com/create\x22]')['click']();window['ghostdog']=!![];const _0x146bb8=GameManager['loadGame']['bind'](GameManager);GameManager['loadGame']=()=>{_0x146bb8();const _0x3f05da=[];GameManager['game']['currentScene']['playerManager']['firstPlayer']['removeCheckpoint']=function(_0x3a0689){if(this['_checkpoints']['length']>0x1){for(let _0x3aa932=0x0;_0x3a0689>_0x3aa932;_0x3aa932++){this['_checkpoints']['pop']();_0x3f05da['pop']();}this['gotoCheckpoint']();}else this['restartScene']();};GameManager['game']['currentScene']['playerManager']['firstPlayer']['gotoCheckpoint']=function(){const _0x145eb8=function _0x4b632a(_0x4184f2,_0x207cb9){for(const _0x1ece24 in _0x207cb9){try{_0x4184f2[_0x1ece24]=_0x207cb9[_0x1ece24]['constructor']==Object?_0x4b632a(_0x4184f2[_0x1ece24],_0x207cb9[_0x1ece24]):_0x207cb9[_0x1ece24];}catch(_0x33c4d3){_0x4184f2[_0x1ece24]=_0x207cb9[_0x1ece24];}}return _0x4184f2;};if(!_0x3f05da['length'])return GameManager['game']['currentScene']['playerManager']['firstPlayer']['restartScene']();const _0x25de18=this['_gamepad'],_0x386440=_0x25de18['replaying'],_0x52304f=this['_scene'];if(this['_checkpoints']['length']>0x0){const _0x3fc148=this['_checkpoints'][this['_checkpoints']['length']-0x1];if(_0x3fc148['_tempVehicle']){this['_baseVehicle']['stopSounds']();let _0x29cd3c=this['_tempVehicle'];this['_tempVehicleType']!==_0x3fc148['_tempVehicleType']&&(_0x29cd3c=new v[_0x3fc148['_tempVehicleType']](this,{'x':0x0,'y':0x0}));const _0x4bf2fd=JSON['parse'](_0x3fc148['_tempVehicle']);_0x145eb8(_0x29cd3c,_0x4bf2fd),this['_tempVehicle']=_0x29cd3c,this['_tempVehicleType']=_0x3fc148['_tempVehicleType'],this['_tempVehicleTicks']=_0x3fc148['_tempVehicleTicks'],_0x29cd3c['updateCameraFocalPoint']();}else{const _0x58ac93=this['_baseVehicle'],_0x2e173a=JSON['parse'](_0x3fc148['_baseVehicle']);_0x145eb8(_0x58ac93,_0x2e173a),this['_tempVehicle']&&this['_tempVehicle']['stopSounds'](),this['_baseVehicle']=_0x58ac93,this['_tempVehicleTicks']=0x0,this['_tempVehicleType']=!0x1,_0x58ac93['updateCameraFocalPoint']();}if(this['_powerupsConsumed']=JSON['parse'](_0x3fc148['_powerupsConsumed']),this['_crashed']=_0x3fc148['_crashed'],_0x386440===!0x1){const _0x199bb3=_0x52304f['settings'];_0x52304f['state']['playerAlive']=this['isAlive'](),_0x52304f['settings']['mobile']?_0x52304f['message']['show']('Tap\x20to\x20resume',0x5,'#826cdc','#FFFFFF'):_0x52304f['message']['show']('Press\x20Backspace\x20To\x20Go\x20Back\x20Further',0x5,'#826cdc','#FFFFFF'),_0x52304f['track']['updatePowerupState'](this),_0x199bb3['waitAtCheckpoints']&&(_0x52304f['state']['playing']=!0x1),_0x52304f['camera']['focusOnMainPlayer']();}_0x52304f['camera']['playerFocus']===this&&_0x52304f['camera']['fastforward']();}else _0x386440===!0x1&&this['restartScene']();this['_scene']['ticks']=_0x3f05da[_0x3f05da['length']-0x1];};setInterval(()=>{!GameManager['game']['currentScene']['playerManager']['firstPlayer']['_crashed']&&(GameManager['game']['currentScene']['playerManager']['firstPlayer']['setCheckpointOnUpdate'](),_0x3f05da['push'](GameManager['game']['currentScene']['ticks']));},0x1e);GameManager['game']['currentScene']['importCode']=_0x2dbf47;const _0x492e2f=setInterval(()=>{const _0x1f87fc=document['querySelector']('.topMenu');if(!_0x1f87fc)return;clearInterval(_0x492e2f);['.topMenu-button_export','.topMenu-button_import']['forEach'](_0x353df7=>document['querySelector'](_0x353df7)['parentElement']['removeChild'](document['querySelector'](_0x353df7)));setInterval(()=>['.topMenu-button_export','.topMenu-button_import']['forEach'](_0x46c805=>document['querySelector'](_0x46c805)&&document['querySelector'](_0x46c805)['parentElement']['removeChild'](document['querySelector'](_0x46c805))),0x3e8);_0x1f87fc['innerHTML']+='<div\x20class=\x22topMenu-button\x22\x20id=\x22vehicle\x22><span\x20class=\x22text\x22>Change\x20Vehicle</span></div>';_0x1f87fc['innerHTML']+='<div\x20class=\x22topMenu-button\x22\x20id=\x22physicsS\x22><span\x20class=\x22text\x22>No\x20Physics</span></div>';_0x1f87fc['innerHTML']+='<div\x20class=\x22topMenu-button\x22\x20id=\x22devMode\x22><span\x20class=\x22text\x22>Dev\x20Mode</span></div>';_0x1f87fc['innerHTML']+='<div\x20class=\x22topMenu-button\x22\x20id=\x22noDeath\x22><span\x20class=\x22text\x22>No\x20Head\x20Hitbox</span></div>';document['querySelector']('#vehicle')['onclick']=()=>{const _0x4f3461=GameManager['game']['currentScene']['playerManager']['firstPlayer']['_tempVehicle']||GameManager['game']['currentScene']['playerManager']['firstPlayer']['_baseVehicle'];GameManager['game']['currentScene']['playerManager']['firstPlayer']['setTempVehicle']({'blob':'BLOB','heli':'HELI','balloon':'BALLOON','truck':'TRUCK'}[prompt('Vehicle\x20(blob,\x20heli,\x20balloon,\x20truck)','blob')['toLowerCase']()]||'BLOB',parseInt(prompt('Duration','3000000'))||0x2dc6c0,{'x':_0x4f3461['head']['pos']['x'],'y':_0x4f3461['head']['pos']['y']},0x1);};document['querySelector']('#physicsS')['onclick']=()=>GameSettings['physicsSectorSize']=GameSettings['physicsSectorSize']===0x0?0x64:0x0;document['querySelector']('#devMode')['onclick']=()=>GameSettings['developerMode']=!GameSettings['developerMode'];document['querySelector']('#noDeath')['onclick']=()=>GameManager['game']['currentScene']['playerManager']['firstPlayer']['_baseVehicle']['head']['collide']=!GameManager['game']['currentScene']['playerManager']['firstPlayer']['_baseVehicle']['head']['collide'];},0x3e8);};break;case'random':if(/^us?e?r?s?$/['test'](window['location']['href']['split']('/')[0x4]))window['location']['href']='https://www.freeriderhd.com/u/'+(await _0x586b9())['u_name'];break;case'users':document['title']='Active\x20Users';document['querySelectorAll']('.system-page-wrapper\x20*')['forEach'](_0x2f0b3a=>_0x2f0b3a['parentElement']['removeChild'](_0x2f0b3a));document['querySelector']('.system-page-wrapper')['innerHTML']=(await _0x429431())['map'](_0x11a190=>'<p><a\x20href=\x22https://www.freeriderhd.com/u/'+_0x11a190['u_name']+'\x22>'+_0x11a190['d_name']+'</a></p>')['join']('\x0a');break;}},0x3e8);}());
Advertisement
Add Comment
Please, Sign In to add comment