{"id":28199014,"url":"https://github.com/ohld/ton-labels-extension","last_synced_at":"2025-05-16T18:15:06.493Z","repository":{"id":282447950,"uuid":"921155674","full_name":"ohld/ton-labels-extension","owner":"ohld","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-14T17:10:16.000Z","size":179,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-14T18:31:32.012Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/ohld.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-23T12:51:46.000Z","updated_at":"2025-03-14T17:10:19.000Z","dependencies_parsed_at":"2025-03-14T18:42:03.421Z","dependency_job_id":null,"html_url":"https://github.com/ohld/ton-labels-extension","commit_stats":null,"previous_names":["ohld/ton-labels-extension"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohld%2Fton-labels-extension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohld%2Fton-labels-extension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohld%2Fton-labels-extension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohld%2Fton-labels-extension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ohld","download_url":"https://codeload.github.com/ohld/ton-labels-extension/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254582931,"owners_count":22095520,"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":"2025-05-16T18:14:49.999Z","updated_at":"2025-05-16T18:15:06.485Z","avatar_url":"https://github.com/ohld.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TON Address Labels Chrome Extension\n\nThis Chrome extension enhances the browsing experience on tonviewer.com by adding labels for TON blockchain addresses from [ton-studio/ton-labels](https://github.com/ton-studio/ton-labels) and a custom local file. It also removes `scam` and `suspicious` transactions from the list.\n\n![TON Address Labels Extension](images/image.png)\n\n## Features\n\n- Automatically replaces TON addresses with human-readable labels on tonviewer.com\n- Periodically updates the labels database (every 24 hours)\n- Works with dynamically loaded content\n- Uses local storage for fast label lookups\n- Supports custom labels through a local configuration file\n\n## Installation\n\n1. Clone this repository or download the source code\n2. Open Chrome-based browser and navigate to `chrome://extensions/`\n3. Enable \"Developer mode\" in the top right corner\n4. Click \"Load unpacked\" and select the extension directory\n\n## Custom Labels\n\nTo add your own custom labels:\n\n1. Copy the example file: `cp custom_labels.example.json custom_labels.json`\n2. Edit `custom_labels.json` and add your labels in the format:\n```json\n{\n    \"UQDSE2BHJi4Qowu4jgvqQ3_4-KFrR2x6DqPzFkMGczCgoLcK\": \"Label Name\"\n}\n```\n3. Reload the extension to apply your changes\n\nYour custom labels will take precedence over the public labels database.\n\n## Development\n\nThe extension consists of three main components:\n\n- `manifest.json`: Extension configuration and permissions\n- `background.js`: Handles fetching and storing the labels database\n- `content.js`: Manages DOM manipulation and label replacement\n\n## How it Works\n\n1. When installed or updated, the extension fetches the latest labels from the TON Labels repository\n2. Labels are stored in Chrome's local storage for quick access\n3. When browsing tonviewer.com, the extension automatically replaces address text with corresponding labels\n4. A MutationObserver ensures labels are applied to dynamically loaded content\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request. Join TON Data hub comminuty: https://t.me/tondatahub.\n\n## License\n\nMIT\n\n----","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fohld%2Fton-labels-extension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fohld%2Fton-labels-extension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fohld%2Fton-labels-extension/lists"}