{"id":18799935,"url":"https://github.com/mcnaveen/android-webview-darkmode-with-javascript","last_synced_at":"2025-04-13T17:31:06.780Z","repository":{"id":53943710,"uuid":"346470768","full_name":"mcnaveen/Android-Webview-Darkmode-with-JavaScript","owner":"mcnaveen","description":"This POC is implemented to explain how dark mode js can be used inside Android Webview Component ","archived":false,"fork":false,"pushed_at":"2021-03-11T13:19:28.000Z","size":2258,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T08:22:11.419Z","etag":null,"topics":["android","androidwebview","dark-theme","darkmode","java","webview-app","webviewdemo"],"latest_commit_sha":null,"homepage":"","language":"Java","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/mcnaveen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":null,"patreon":"mcnaveen","open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":"https://www.buymeacoffee.com/mcnaveen"}},"created_at":"2021-03-10T19:36:25.000Z","updated_at":"2023-09-08T08:22:04.000Z","dependencies_parsed_at":"2022-08-13T05:10:45.770Z","dependency_job_id":null,"html_url":"https://github.com/mcnaveen/Android-Webview-Darkmode-with-JavaScript","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcnaveen%2FAndroid-Webview-Darkmode-with-JavaScript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcnaveen%2FAndroid-Webview-Darkmode-with-JavaScript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcnaveen%2FAndroid-Webview-Darkmode-with-JavaScript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcnaveen%2FAndroid-Webview-Darkmode-with-JavaScript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mcnaveen","download_url":"https://codeload.github.com/mcnaveen/Android-Webview-Darkmode-with-JavaScript/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248752351,"owners_count":21156077,"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":["android","androidwebview","dark-theme","darkmode","java","webview-app","webviewdemo"],"created_at":"2024-11-07T22:17:06.438Z","updated_at":"2025-04-13T17:31:06.399Z","avatar_url":"https://github.com/mcnaveen.png","language":"Java","readme":"## 🌓 Dark Mode Switch inside Android Webview\n![Build](https://github.com/mcnaveen/Android-Webview-Darkmode-with-JavaScript/workflows/Build/badge.svg)\n\nThis POC is implemented to explain how dark mode js can be used inside Android Webview Component [using DOMStorage API](https://github.com/mcnaveen/Android-Webview-Darkmode-with-JavaScript/blob/71b8714c31039dc2e02ba443bcfd996a4b6b1f0e/app/src/main/java/github/mcnaveen/webviewDarkMode/MainActivity.java#L34)\n\n## 🦄 Resources Used\n- Android Webview\n- [Coliff's Dark Mode Switch JS](https://github.com/coliff/dark-mode-switch)\n- [Demo Page of Coliff's Dark Mode Switch](https://coliff.github.io/dark-mode-switch/)\n\n## 🏃 Test yourself\n- [Download the APK from the Releases Tab](https://github.com/mcnaveen/Android-Webview-Darkmode-with-JavaScript/releases/)\n\n### ⚠️ Warning\nThis App uses the Deprecated API `webSetting.setDomStorageEnabled(true);`. But this is the only possible working solution. Even though it's deprecated it can be safely used.\n\n## License\n- MIT\n","funding_links":["https://patreon.com/mcnaveen","https://www.buymeacoffee.com/mcnaveen"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcnaveen%2Fandroid-webview-darkmode-with-javascript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmcnaveen%2Fandroid-webview-darkmode-with-javascript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcnaveen%2Fandroid-webview-darkmode-with-javascript/lists"}