{"id":17720272,"url":"https://github.com/dolegi/222","last_synced_at":"2025-04-10T14:30:35.421Z","repository":{"id":95661544,"uuid":"270025450","full_name":"dolegi/222","owner":"dolegi","description":"222. Dark mode. Everywhere. 222 bytes of js to make any website dark","archived":false,"fork":false,"pushed_at":"2020-06-07T07:35:17.000Z","size":3605,"stargazers_count":66,"open_issues_count":1,"forks_count":4,"subscribers_count":0,"default_branch":"master","last_synced_at":"2024-12-06T22:39:35.931Z","etag":null,"topics":["bookmark","bookmarklet","dark-mode","dark-theme"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dolegi.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-06T15:41:09.000Z","updated_at":"2024-10-18T18:19:12.000Z","dependencies_parsed_at":"2023-03-24T05:19:03.863Z","dependency_job_id":null,"html_url":"https://github.com/dolegi/222","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/dolegi%2F222","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dolegi%2F222/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dolegi%2F222/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dolegi%2F222/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dolegi","download_url":"https://codeload.github.com/dolegi/222/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248233946,"owners_count":21069493,"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":["bookmark","bookmarklet","dark-mode","dark-theme"],"created_at":"2024-10-25T15:26:36.218Z","updated_at":"2025-04-10T14:30:34.008Z","avatar_url":"https://github.com/dolegi.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# 222. Dark mode. Everywhere.\n\n222 is a bookmarklet that enables darkmode on any website.\n\nSimply drag and drop these 222 bytes to your bookmarks bar\n```javascript\njavascript:document.querySelectorAll('*').forEach(e=\u003ee.setAttribute('style','background-color:#222;background-image:none;color:#'+(/^A|BU/.test(e.tagName)?'36c;text-decoration:underline;':'eee;')+e.getAttribute('style')))\n```\nAnd then click the bookmark on any page you want to enable darkmode on.\n\n## Examples\n![](./examples/hn.png)\n![](./examples/youtube.png)\n![](./examples/google.png)\n\n## Alternative Installation\nSimply create a bookmark and set the content of [./index.js](./index.js) as the url and click it on any page you want to enable dark mode.\n\n## Customization\nCustomizing is easy, simpy fork the project and change the styles you would like in [./index.js](./index.js).\n\n## Chrome Extension:\n\nTo install as a chrome extension:\n\n1. Check-out or download this project\n\n2. Open Chrome Browser, click tools-\u003eextensions\n\n3. Enable developer mode, click toggle ( top-right )\n\n4. Click \"load unpacked\" button and choose the 222 installation folder\n\nyou're good to go!\n\n## Contributing\nPlease open pull requests and issues on github for anything you find :).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdolegi%2F222","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdolegi%2F222","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdolegi%2F222/lists"}