Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aiktb/donttranslatecode
Don't translate code blocks on the pages, keep them elegant! 🥝
https://github.com/aiktb/donttranslatecode
browser-extension chrome-extension firefox-addon plasmo translate
Last synced: about 2 months ago
JSON representation
Don't translate code blocks on the pages, keep them elegant! 🥝
- Host: GitHub
- URL: https://github.com/aiktb/donttranslatecode
- Owner: aiktb
- License: mit
- Created: 2023-10-13T07:56:02.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-18T12:09:55.000Z (over 1 year ago)
- Last Synced: 2023-10-18T13:28:15.749Z (over 1 year ago)
- Topics: browser-extension, chrome-extension, firefox-addon, plasmo, translate
- Language: TypeScript
- Homepage:
- Size: 839 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Don't Translate Code
Web Translator will no longer translate code blocks on the pages, and it will no longer make the font of the code look weird.
Special thanks to **_[plasmo](https://github.com/PlasmoHQ/plasmo)_** for taking the frustration out of browser extension development for me.
![Principle](https://s2.loli.net/2023/10/14/R2VUykeXCA8iTFG.webp)
## Features
- [x] Prevents the translator from translating `pre` elements.
- [x] Force the font of `code` & `pre` elements to `Intel One Mono`.## Contribution
Please make sure to read the [Contributing Guide](./.github/CONTRIBUTING.md) before making a pull request.
This includes instructions on how to setup development environment, test extensions, and build the final product.