{"id":26475265,"url":"https://github.com/tor968/okxracer-script","last_synced_at":"2025-03-19T23:16:36.774Z","repository":{"id":255069115,"uuid":"847354945","full_name":"TOR968/OKXracer-script","owner":"TOR968","description":null,"archived":false,"fork":false,"pushed_at":"2024-09-10T15:20:29.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-09-10T17:01:40.877Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TOR968.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-08-25T15:37:11.000Z","updated_at":"2024-09-10T15:28:07.000Z","dependencies_parsed_at":"2024-09-10T16:47:06.575Z","dependency_job_id":"9a68656f-1884-46b0-b2da-4fcdffd2fa0e","html_url":"https://github.com/TOR968/OKXracer-script","commit_stats":null,"previous_names":["tor968/okxracer-script"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TOR968%2FOKXracer-script","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TOR968%2FOKXracer-script/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TOR968%2FOKXracer-script/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TOR968%2FOKXracer-script/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TOR968","download_url":"https://codeload.github.com/TOR968/OKXracer-script/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244520157,"owners_count":20465632,"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":[],"created_at":"2025-03-19T23:16:36.015Z","updated_at":"2025-03-19T23:16:36.764Z","avatar_url":"https://github.com/TOR968.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OKXracer simple Clicker Script in Telegram Desktop\n\nThis script automates clicking in a game environment, managing fuel levels and applying strategies for button selection.\n\n## Features\n\n- Automatically clicks buttons at random intervals\n- Manages fuel levels and initiates refueling when necessary\n- Implements a strategy for selecting between \"MOON\" and \"DOOM\" buttons\n- Handles AutoPilot functionality\n- Includes a refueling timer with randomization\n\n## Configuration\n\nThe script uses several constants that can be adjusted:\n\n- `RELOAD`: Boolean to enable/disable the refuel function (default: false)\n- `BASE_TIME`: Base time for fuel regeneration in milliseconds (default: 150000, i.e., 2.5 minutes)\n- `CHECK_INTERVAL`: Interval for checking fuel status in milliseconds (default: 60000, i.e., 1 minute)\n- `percentOnDoom`: Probability of choosing the DOOM button (default: 0.2, i.e., 20%)\n\n## Functions\n\n- `clickButtonWithRandomInterval()`: Main function that manages the clicking process\n- `checkAndClickAutoPilotButton()`: Checks for and clicks the AutoPilot button if available\n- `getFuelIndicator()`: Retrieves the current fuel level\n- `clickButton(button, label)`: Clicks a specified button and logs the action\n- `refuel()`: Performs the refueling process\n- `startRefuelTimer()`: Initiates a timer for refueling with randomization\n\n## Usage\n\nTo use this script:\n\n1. Open the game in your Telegram Desktop\n2. Open the developer console\n3. Copy and paste the [script](index.js) into the console (if insert does not work, write the command `allow pasting`)\n4. Press Enter to start the script\n\nThe script will run automatically, managing fuel levels and clicking buttons according to the defined strategy.\n\n## Caution\n\nThis script automates game actions. Use it responsibly and in accordance with the game's terms of service to avoid any potential issues with your account.\n\n\n## Activating Developer Console in Telegram Desktop\n\nTo run this script using Telegram Desktop:\n\nOpen Telegram Desktop\nGo to Settings \u003e Advanced \u003e Experimental settings\nFind and enable the \"Enable webview inspecting\" option\n\n![settings](image.png)\n\nOn macOS: Right-click and choose \"Inspect\" in the webview windows, or open from the Develop menu in Safari\nOn Windows/Linux: Use the keyboard shortcut Ctrl + Shift + I or F12\n\n\nRestart Telegram Desktop to apply the changes\nOpen the chat or section where you want to run the script\nOpen the developer console using the method appropriate for your OS (step 3)\nClick on the \"Console\" tab in the developer tools window\nCopy and paste the script into the console\nPress Enter to run the script","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftor968%2Fokxracer-script","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftor968%2Fokxracer-script","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftor968%2Fokxracer-script/lists"}