{"id":22822547,"url":"https://github.com/yqs112358/edgetranslator-codetag-bugfix","last_synced_at":"2025-04-23T03:43:08.483Z","repository":{"id":219263713,"uuid":"748596883","full_name":"yqs112358/EdgeTranslator-CodeTag-BugFix","owner":"yqs112358","description":"Fix \u003ccode\u003e bug for Microsoft Edge translator","archived":false,"fork":false,"pushed_at":"2024-08-04T04:09:10.000Z","size":225,"stargazers_count":14,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-08T02:42:50.659Z","etag":null,"topics":["edge","edge-translator","tampermonkey-script"],"latest_commit_sha":null,"homepage":"","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/yqs112358.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}},"created_at":"2024-01-26T10:39:30.000Z","updated_at":"2024-11-18T12:08:38.000Z","dependencies_parsed_at":"2024-02-17T11:26:14.501Z","dependency_job_id":"dbf3c24e-6c46-46e9-8e2e-3521851469b3","html_url":"https://github.com/yqs112358/EdgeTranslator-CodeTag-BugFix","commit_stats":null,"previous_names":["yqs112358/fix-code-tag-bug-for-edge-translator","yqs112358/edgetranslatorbugfix"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yqs112358%2FEdgeTranslator-CodeTag-BugFix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yqs112358%2FEdgeTranslator-CodeTag-BugFix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yqs112358%2FEdgeTranslator-CodeTag-BugFix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yqs112358%2FEdgeTranslator-CodeTag-BugFix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yqs112358","download_url":"https://codeload.github.com/yqs112358/EdgeTranslator-CodeTag-BugFix/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229412554,"owners_count":18068943,"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":["edge","edge-translator","tampermonkey-script"],"created_at":"2024-12-12T16:12:20.811Z","updated_at":"2024-12-12T16:12:21.248Z","avatar_url":"https://github.com/yqs112358.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fix \\\u003ccode\\\u003e bug for Edge translator\n\nEnglish | [中文](README_zh.md)\n\n## Introduction\n\n- A simple TamperMonkey script\n- To fix a long-standing bug in Microsoft Edge's built-in translator: it moves all `\u003ccode\u003e` tags to the end of the paragraph when translating, resulting in a completely unreadable text paragraph.\n- More detailed discussion: [The translator always move the code tag content to the end - Microsoft Community Hub](https://techcommunity.microsoft.com/t5/discussions/the-translator-always-move-the-code-tag-content-to-the-end/m-p/1906043)\n\n\u003cimg src=\"assets/large.png\" alt=\"before\" style=\"zoom: 67%;\" /\u003e\n\n\u003ccenter\u003e👇\u003c/center\u003e\n\n\u003cimg src=\"assets/large-1706264991457-3.png\" alt=\"after\" style=\"zoom:67%;\" /\u003e\n\n## Installation\n\n- Greasy Fork: https://greasyfork.org/scripts/485715-fix-code-bug-for-edge-translator\n\n## Tips\n\n- Principle: replace `\u003ccode\u003e` with the same-styled `\u003cspan\u003e` on all pages\n- Due to the principle of implementation, this script may lead to performance issue when there are a lot of changes in the DOM\n- This solution is by no means perfect, may cause problems on some sites, and javascript code relying on xpath to modify elements will also be affected\n- **Feel free to report problems and bugs in Issue**\n\n\u003e Why hasn't such a ridiculous bug been fixed in many years?\n\u003e Fuck you, Microsoft! ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyqs112358%2Fedgetranslator-codetag-bugfix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyqs112358%2Fedgetranslator-codetag-bugfix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyqs112358%2Fedgetranslator-codetag-bugfix/lists"}