Corrects translation errors in programming docs by replacing code tags with span tags, enhancing readability.

Latest Version

Version
2.2
Update
January 2, 2024
Size
14.51KiB
Developer
Category
Users
230
Rating
5 ★
Manifest Version
3
Web Store Status
Languages Support
English
日本語
See more
Permissions
Storage
See more

CodeToSpan for Translation Extension

Target Users:
Programming learners, particularly those who need to read programming documentation in English but are not as proficient in English as their native language.

Features:
When learning programming, automatic translation of documents often encounters difficulties. This extension, by replacing code tags with span tags, corrects layout distortions and translation inaccuracies caused by web pages' code tags.

Therefore, when used in conjunction with general web page translation services, it simplifies the understanding of programming documentation pages.

Usage:
When enabled, this extension automatically replaces code tags with span tags upon page load or changes, enhancing the quality of translation. (Note 1)

From the extension's popup, you can toggle the execution/stop of this feature. (Note 2)

Options Page:
In web pages with special notations, this extension might occasionally cause layout disruptions. Adjusting settings in the options page may help mitigate these issues.

Exceptionally, when using natural language AI for code generation, it is recommended to register exclusion domains. (Note 3)

This extension may potentially cause errors in the hydration process, as the rewriting of HTML leads to inconsistencies between the server-side and client-side HTML structures.

If you experience unresponsiveness in button clicks or links, disable the extension and reload the page.

Additional Notes:

1. After installing the extension or changing option settings, reloading the tab is required.
2. Toggling the Run/Stop will automatically reload the page.
3. Web pages that automatically add code tags (such as those using natural language generation AI) may experience reduced performance or instability.

GitHub:
https://github.com/devInui/CodeToSpan

Release notes:
https://github.com/devInui/CodeToSpan/blob/master/RELEASE.md
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "manifest_version": 3, "name": "CodeToSpan for Translation", "version": "2.2", "default_locale": "en", "description": "__MSG_Description__", "icons": { "128": "code-dog-large.png", "48": "code-dog.png" }, "options_ui": { "page": "options.html", "open_in_tab": true }, "action": { "default_title": "CodeToSpan for Translation", "default_popup": "popup.html" }, "permissions": ["storage"], "content_scripts": [ { "matches": [""], "js": ["content.js"], "run_at": "document_idle" } ]}
Read more

Similar Extensions

icon

Cogsworth Extension · Productivity 230 2 ★ 11.86MiB

icon

Tanuki Utilities Extension · Developer Tools 230 1 ★ 25.43KiB

icon

Atfos Extension · Accessibility 230 2 ★ 252KiB

icon

StarterCSS Extension · Developer Tools 230 0 ★ 1.18MiB

icon

Don't translate code! Extension · Accessibility 230 0 ★ 231KiB

icon

Smiley Ogame Extension · Fun 230 1 ★ 28.24KiB

icon

Trello minimal UI toggle Extension · Productivity 230 3 ★ 232KiB

icon

TIO Syntax Highlighter Extension · Productivity 230 2 ★ 491KiB

icon

TimeToCoda Extension · Productivity 230 2 ★ 1.56MiB

icon

Clear Portal Cache Extension · Developer Tools 230 1 ★ 60.0KiB

icon

ReadAnything Extension · Productivity 230 1 ★ 1.05MiB

icon

StackBob Extension · Productivity 230 5 ★ 310KiB

icon

Continue Without Supporting Extension · Productivity 230 2 ★ 46.19KiB

icon

CodeNoCall Extension · Developer Tools 230 4 ★ 25.46KiB

icon

Redense Clip Extension · Productivity 230 0 ★ 68.23KiB

icon

DeepL Code Blocker Extension · Developer Tools 230 2 ★ 3.53KiB

icon

20Q Text Converter with AI Extension · Productivity 230 11 ★ 1.03MiB

icon

Close Notion Tab Extension · Productivity 230 2 ★ 10.84KiB

icon

Github JSON Editor Extension · Productivity 230 0 ★ 517KiB

icon

Serverless Workflow Editor for GitHub Extension · Productivity 230 1 ★ 101KiB

icon

Wave Barcode Generator Extension · Productivity 230 1 ★ 18.24KiB

icon

Albato GPT-Assistant Extension · Productivity 230 1 ★ 567KiB

icon

AuthentiSci Extension · News & Weather 230 0 ★ 160KiB

icon

Remove wpp Web Status Button - UNOFFICIAL Extension · Productivity 230 8 ★ 13.83KiB

User reviews

icon

yuuki u (ID: 0000008233e7ffa7) Voted 5 ★ - Updated 09/23/2024 めっちゃ使いやく、助かっています。 これは開発者さんへというより、これからこの拡張機能を使う人への内容なのですが、scrapbox.io(cosense)ではこの拡張機能をonにするとコードブロック周りが壊れるので、exclude urlにscrapbox.ioを追加することを推奨します。