{"id":18271512,"url":"https://github.com/qwzybug/JSUserDefaults","last_synced_at":"2025-04-05T02:30:33.939Z","repository":{"id":1162485,"uuid":"1052183","full_name":"qwzybug/JSUserDefaults","owner":"qwzybug","description":"JS bridge for accessing NSUserDefaults from a UIWebView","archived":false,"fork":false,"pushed_at":"2010-11-10T22:39:12.000Z","size":128,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-04T05:03:02.233Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Objective-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/qwzybug.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}},"created_at":"2010-11-04T20:13:05.000Z","updated_at":"2017-06-19T08:55:07.000Z","dependencies_parsed_at":"2022-08-16T12:25:07.132Z","dependency_job_id":null,"html_url":"https://github.com/qwzybug/JSUserDefaults","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/qwzybug%2FJSUserDefaults","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qwzybug%2FJSUserDefaults/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qwzybug%2FJSUserDefaults/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qwzybug%2FJSUserDefaults/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qwzybug","download_url":"https://codeload.github.com/qwzybug/JSUserDefaults/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247279202,"owners_count":20912847,"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":"2024-11-05T11:39:21.152Z","updated_at":"2025-04-05T02:30:33.504Z","avatar_url":"https://github.com/qwzybug.png","language":"Objective-C","readme":"# JSUserDefaults\n\nReal simple drop-in replacement for UIWebView. Just change the class membership of the web view in your nib (or create it programmatically, that oughta work too) and it'll let you access NSUserDefaults through the JSUserDefaults object. Like this:\n\n    [[NSUserDefaults standardUserDefaults] setObject:@\"Bar\"\n                                              forKey:@\"Foo\"];\n\n(...some time later...)\n\n    \u003cscript type=\"text/javascript\"\u003e\n      document.write(JSUserDefaults.objectForKey(\"Foo\"));\n    \u003c/script\u003e\n\nYou can also set objects. Any plist object should work fine—arrays, dictionaries, strings, numbers. Other things might be dicey.\n\nSee the Demo project for an example.\n","funding_links":[],"categories":["etc"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqwzybug%2FJSUserDefaults","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqwzybug%2FJSUserDefaults","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqwzybug%2FJSUserDefaults/lists"}