{"id":15950611,"url":"https://github.com/krmanik/hanzipopup","last_synced_at":"2026-04-26T12:32:20.560Z","repository":{"id":219680817,"uuid":"749598028","full_name":"krmanik/hanzipopup","owner":"krmanik","description":"A port of Zhongwen Chinese-English Pop-Up Dictionary as UserScript for Android and iOS Browser","archived":false,"fork":false,"pushed_at":"2024-01-29T04:37:42.000Z","size":11553,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-04T04:41:25.342Z","etag":null,"topics":["chinese","greasyfork","popup-dictionary","userscript"],"latest_commit_sha":null,"homepage":"https://krmanik.github.io/hanzipopup/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/krmanik.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}},"created_at":"2024-01-29T02:08:46.000Z","updated_at":"2025-02-03T20:26:16.000Z","dependencies_parsed_at":"2024-01-29T06:05:02.186Z","dependency_job_id":null,"html_url":"https://github.com/krmanik/hanzipopup","commit_stats":null,"previous_names":["krmanik/hanzipopup"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/krmanik/hanzipopup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krmanik%2Fhanzipopup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krmanik%2Fhanzipopup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krmanik%2Fhanzipopup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krmanik%2Fhanzipopup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/krmanik","download_url":"https://codeload.github.com/krmanik/hanzipopup/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krmanik%2Fhanzipopup/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32297893,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T09:34:17.070Z","status":"ssl_error","status_checked_at":"2026-04-26T09:34:00.993Z","response_time":129,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["chinese","greasyfork","popup-dictionary","userscript"],"created_at":"2024-10-07T12:59:50.471Z","updated_at":"2026-04-26T12:32:20.539Z","avatar_url":"https://github.com/krmanik.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hanzipopup\n\nPopup Dictionary for Chinese Language\u003cbr\u003e\nPort of [zhongwen](https://github.com/cschiller/zhongwen) browser extension as UserScript for Android and iOS.\n\n## Description\n\nA UserScript for browsers to show meaning in popup for selected Chinese characters. The UserScript uses [zhongwen](https://github.com/cschiller/zhongwen) browser extension codes.\n\n## Highlights\n- Supports both traditional and simplified characters.\n- Natural Text to Speech for selected Chinese characters.\n- Includes a recent version of the widely used CEDICT Chinese English dictionary.\n- Displays Hanyu Pinyin along both the simplified and traditional characters, however only showing either simplified or traditional characters can be configured as an option.\n- As a learning aid it uses different colors for displaying the Pinyin syllables, depending on the tone of the Chinese character.\n- Can be turned on and off with a single mouse-click.\n- Highlights the characters whose translation is displayed in the pop-up window.\n- Also supports keyboard navigation for translating the next character, the next word, or the previous character.\n- Allows you to add words to a built-in word list. Words from this list can be exported to a text file for further processing, such as importing the words into Anki.\n- Includes links to grammar and usage notes on the Chinese Grammar Wiki.\n\n## Install\n\n\u003e Note: Read installation instruction here. [https://greasyfork.org](https://greasyfork.org)\n\n### Android\n\nInstall [Greasemonkey](https://addons.mozilla.org/firefox/addon/greasemonkey/), [Tampermonkey](https://addons.mozilla.org/firefox/addon/tampermonkey/), or [Violentmonkey](https://addons.mozilla.org/firefox/addon/violentmonkey/) for Firefox.\n\n### iOS\n\nInstall [UserScript manager](https://itunes.apple.com/us/app/userscripts/id1463298887) for Safari browser.\n\n## Usage\n\n1. Open browser and enable extension\n\n2. Download and install Hanzipopup UserScript\n\n    - Download from GitHub\n    \u003e [hanzipopup.user.js](https://github.com/krmanik/hanzipopup)\n\n    - Download from Greasy Fork\n    \u003e [hanzipopup.user.js](https://greasyfork.org/en/scripts/485928-hanzipopup-popup-dictionary-for-chinese-language)\n\n3. Open extension and enable the UserScript\n\n4. Enable Hanzipopup and click on Chinese characters to view definitions\n\n\u003e Note: For Chrome and Firefox, use official [Zhongwen](https://github.com/cschiller/zhongwen) extension.\n\n## Source\n\n\u003e [Source Code](https://github.com/krmanik/hanzipopup)\n\n\n## Images\n\n\u003cdiv style=\"display: flex;\"\u003e\n    \u003cimg height=\"450px\" src=\"https://krmanik.github.io/hanzipopup/images/android.jpg\"\u003e\n    \u003cimg height=\"450px\" src=\"https://krmanik.github.io/hanzipopup/images/ios.png\"\u003e\n    \u003cimg height=\"450px\" src=\"https://krmanik.github.io/hanzipopup/images/options.png\"\u003e\n    \u003cimg height=\"450px\" src=\"https://krmanik.github.io/hanzipopup/images/save.png\"\u003e\n\u003c/div\u003e\n\n## Technical Details \n\n- [`window.open`](https://developer.mozilla.org/en-US/docs/Web/API/Window/open)\n\nThe API used to open word list and tts page. The word list store the saved words in local storage and can be used to edit the list and export as file.\n\n- [`window.postMessage`](https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage)\n\nThe API used communicate between current page and word list or tts page. In case of word list page, words data sent from current page to word list page and stored in local storage. In case of tts, selected Chinese text sent from current page to tts page. \n\n- [`@require`]\n\nThe meta used for getting [unzipit](https://cdn.jsdelivr.net/npm/unzipit/dist/unzipit.min.js) library for extracting compressed cedict_ts.zip file.\n\n- [`GM_xmlhttpRequest`]\n\nThe meta used for getting zhongwen dictionary data.\n\n## Experimental Feature\n\n#### Text to speech for selected Chinese characters\n\n- To fix following error, a new window with [tts.html](https://krmanik.github.io/hanzipopup/tts.html) opened and tts played in that window.\n```\nRefused to connect to 'wss://speech.platform.bing.com/consumer/speech/synthesize/readaloud/edge/v1?TrustedClientToken=\n```\n\n- To fix following error, in opened [tts.html](https://krmanik.github.io/hanzipopup/tts.html) page, a toggle button added to make sure, user should interact to the tts page before using tts in opener page.\n```\nUncaught (in promise) DOMException: play() failed because the user didn't interact with the document first.\n```\n\nAfter tts page opened, go back to opener page click once tts icon, again come back to opener pager.\n\n## Issues\n\nFor issues and help,\u003cbr\u003e[https://github.com/krmanik/hanzipopup/issues](https://github.com/krmanik/hanzipopup/issues)\n\n## License\n- krmanik\n- GPL-2.0 Copyright (C) 2024\n- Read more [License](https://krmanik.github.io/hanzipopup/license)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrmanik%2Fhanzipopup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrmanik%2Fhanzipopup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrmanik%2Fhanzipopup/lists"}