{"id":24375180,"url":"https://github.com/omgrod/external-hook-api","last_synced_at":"2026-04-22T15:36:54.823Z","repository":{"id":271937550,"uuid":"915034780","full_name":"OmgRod/External-Hook-API","owner":"OmgRod","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-11T16:02:08.000Z","size":193,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-26T05:56:23.724Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","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/OmgRod.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.md","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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":"omgrod","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"lfx_crowdfunding":null,"polar":null,"buy_me_a_coffee":null,"custom":null}},"created_at":"2025-01-10T20:31:12.000Z","updated_at":"2025-01-11T16:02:11.000Z","dependencies_parsed_at":"2025-01-10T21:46:00.266Z","dependency_job_id":"f9b83368-ec21-40d2-ba8b-52ebf63d1cc7","html_url":"https://github.com/OmgRod/External-Hook-API","commit_stats":null,"previous_names":["omgrod/external-hook-api"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/OmgRod/External-Hook-API","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OmgRod%2FExternal-Hook-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OmgRod%2FExternal-Hook-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OmgRod%2FExternal-Hook-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OmgRod%2FExternal-Hook-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OmgRod","download_url":"https://codeload.github.com/OmgRod/External-Hook-API/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OmgRod%2FExternal-Hook-API/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32143660,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T15:33:03.595Z","status":"ssl_error","status_checked_at":"2026-04-22T15:30:42.712Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-01-19T05:53:54.307Z","updated_at":"2026-04-22T15:36:54.806Z","avatar_url":"https://github.com/OmgRod.png","language":"C++","funding_links":["https://ko-fi.com/omgrod"],"categories":[],"sub_categories":[],"readme":"# External Hook API\n\ni'm too lazy to create docs so here's some below from geodify:\n\n### External Mods\n\nFor external mods that modify the background of a specific menu, you can use the following example. This shows how to hook into `GlobedLevelListLayer` to add a custom background.\n\n```cpp\n#include \u003cGeode/Geode.hpp\u003e\n#include \"../../SwelvyBG.hpp\"\n#include \"../../Hooks/Hooker.hpp\" \nusing namespace geode::prelude;\n\nViper_Hookclass(GlobedLevelListLayer) {\n        if (auto bg = this-\u003egetChildByID(\"background\")) {\n            bg-\u003esetVisible(false);\n        }\n\n        SwelvyBG* swelvyBG = SwelvyBG::create();\n        swelvyBG-\u003esetZOrder(-1);\n        swelvyBG-\u003esetID(\"swelvy-background\");\n        this-\u003eaddChild(swelvyBG);\n}\n\n```\nThis way is new from v1.7.0+!\n\n### External Mods Fix\n\nFor external mods that really don't like you to modify the background of a specific menu, you can use the following example. This shows how to hook into `cvolton.betterinfo/CustomCreatorLayer` to add a custom background.\n\nPlease do not do this unless like in this example it's the only way since Viper_Hookclass won't work on it!\n\n```cpp\n#include \u003cGeode/Geode.hpp\u003e\n#include \"../../SwelvyBG.hpp\"\n#include \"../../Hooks/Hooker.hpp\" \nusing namespace geode::prelude;\n// class name to store in code, Hook to (the real layer id)\nViper_Hookclass_Scene(cvolton_betterinfo_CustomCreatorLayer,\"cvolton.betterinfo/CustomCreatorLayer\") {\n         if (auto bg = _This-\u003egetChildByID(\"cvolton.betterinfo/background\")) {\n            bg-\u003esetVisible(false);\n            SwelvyBG* swelvyBG = SwelvyBG::create();\n            swelvyBG-\u003esetZOrder(-1);\n            swelvyBG-\u003esetID(\"swelvy-background\");\n            _This-\u003eaddChild(swelvyBG);\n        }\n}\n```\nThis way is new from v1.7.0+!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomgrod%2Fexternal-hook-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fomgrod%2Fexternal-hook-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomgrod%2Fexternal-hook-api/lists"}