{"id":19732500,"url":"https://github.com/mmin18/waxpatch","last_synced_at":"2025-04-04T20:15:06.314Z","repository":{"id":4246225,"uuid":"5371382","full_name":"mmin18/WaxPatch","owner":"mmin18","description":"Dynamically load a lua script to change the behavior of your iOS application.","archived":false,"fork":false,"pushed_at":"2013-10-22T09:57:51.000Z","size":661,"stargazers_count":832,"open_issues_count":2,"forks_count":176,"subscribers_count":62,"default_branch":"master","last_synced_at":"2024-05-22T15:31:27.004Z","etag":null,"topics":["ios","lua","patch","wax"],"latest_commit_sha":null,"homepage":"","language":"C","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/mmin18.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}},"created_at":"2012-08-10T16:05:12.000Z","updated_at":"2024-05-22T11:44:27.000Z","dependencies_parsed_at":"2022-09-17T22:01:54.464Z","dependency_job_id":null,"html_url":"https://github.com/mmin18/WaxPatch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmin18%2FWaxPatch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmin18%2FWaxPatch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmin18%2FWaxPatch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmin18%2FWaxPatch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mmin18","download_url":"https://codeload.github.com/mmin18/WaxPatch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247242681,"owners_count":20907134,"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":["ios","lua","patch","wax"],"created_at":"2024-11-12T00:26:40.774Z","updated_at":"2025-04-04T20:15:06.285Z","avatar_url":"https://github.com/mmin18.png","language":"C","readme":"## Wax Loader\nMutated version of Wax (https://github.com/probablycorey/wax/)\n\nSupport method override and direct method call from Obj-C code, which gives you the ability to dynamically change the behavior of a running iOS application.\n\nIt has been proved stable on more than 5,000,000 devices.\n### Tutorial\nThe patch is a zip file contains patch.lua and other lua codes. The sample code can be found at /patch folder.\n\nThe sample iOS project loads the patch from a url (which you probably want to change in AppDelegate.m) before launch.\n\n##### The original version in obj-c:\n\n![Original](https://raw.github.com/mmin18/Create-a-More-Flexible-App/master/WaxOriginal.png)\n\n    @implementation MainViewController\n    \n    - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {\n        return 10;\n    }\n    \n    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {\n        UITableViewCell *cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:@\"Cell\"];\n        cell.textLabel.text = [NSString stringWithFormat:@\"%d\", indexPath.row + 1];\n        return cell;\n    }\n    \n    @end\n\n##### The pacthed version with lua:\n\n![Patched](https://raw.github.com/mmin18/Create-a-More-Flexible-App/master/WaxPatched.png)\n\n    waxClass{\"MainViewController\", UITableViewController}\n    \n    function tableView_cellForRowAtIndexPath(self, tableView, indexPath)\n    \tlocal cell = self:ORIGtableView_cellForRowAtIndexPath(tableView, indexPath) -- The original method is retained with 'ORIG' prefix\n    \tcell:textLabel():setText(\"\" .. (10 - indexPath:row()))\n    \tcell:detailTextLabel():setText(\"http://github.com/mmin18\")\n    \tcell:textLabel():setTextColor(UIColor:redColor())\n    \treturn cell\n    end\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmmin18%2Fwaxpatch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmmin18%2Fwaxpatch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmmin18%2Fwaxpatch/lists"}