{"id":13292225,"url":"https://github.com/emlinhax/monkey-detect","last_synced_at":"2025-03-10T06:34:18.945Z","repository":{"id":171361365,"uuid":"647832786","full_name":"emlinhax/monkey-detect","owner":"emlinhax","description":"Detect Tampermonkey scripts by stackwalking","archived":false,"fork":false,"pushed_at":"2023-05-31T16:26:25.000Z","size":9374,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-07-23T22:24:15.437Z","etag":null,"topics":["anticheat","browser-game","hooking","javascript","security"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/emlinhax.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-05-31T16:01:30.000Z","updated_at":"2023-07-23T22:24:16.269Z","dependencies_parsed_at":null,"dependency_job_id":"3ec3c432-d7ea-43d2-8788-61c0ba8736aa","html_url":"https://github.com/emlinhax/monkey-detect","commit_stats":null,"previous_names":["r4yven/monkey-detect","emlinhax/monkey-detect"],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emlinhax%2Fmonkey-detect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emlinhax%2Fmonkey-detect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emlinhax%2Fmonkey-detect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emlinhax%2Fmonkey-detect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emlinhax","download_url":"https://codeload.github.com/emlinhax/monkey-detect/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242805838,"owners_count":20187996,"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":["anticheat","browser-game","hooking","javascript","security"],"created_at":"2024-07-29T17:07:29.209Z","updated_at":"2025-03-10T06:34:15.355Z","avatar_url":"https://github.com/emlinhax.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# monkey-detect\nDetect Tampermonkey scripts by stackwalking\n\nThis script will detect running tampermonkey that call functions on your site.\\\nThis could be used as an anti cheating mechanism or whatever you want.\\\nPS: I recommend to obfuscate the script and hide it well so people dont find it immediatly.\n\nDuring testing it was able to detect alot of pretty well known tampermonkey scripts\\\nfor the popular browser game diep.io which proved that the concept works!\n\n\nUsage: \n```javascript\n\n// argument 1: the class/namespace you want to watch all the functions of (example: window, CanvasRenderingContext2D, ...)\n// argument 2: the blacklist (functions that will not be hooked)\n// argument 3: a callback (that takes the function name as an argument).\nhook(window, [\"alert\"], exampleCallback)\n\nfunction exampleCallback(name) {\n  console.log(\"[monkey-detect] \" + name + \" was called by a tampermonkey script\")\n  document.body.innerHTML = \"\u003cdiv style=\\\"text-align: center;\\\"\u003e\u003ch1\u003ePlease disable TamperMonkey!\u003c/h1\u003e\u003c/div\u003e\";\n}\n```\n\n![Showcase](https://github.com/R4YVEN/monkey-detect/blob/main/showcase.gif)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femlinhax%2Fmonkey-detect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femlinhax%2Fmonkey-detect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femlinhax%2Fmonkey-detect/lists"}