Skip to content

Commit

Permalink
Repo Update
Browse files Browse the repository at this point in the history
Signed-off-by: Magic <[email protected]>
  • Loading branch information
magicoflolis committed Aug 2, 2022
1 parent 1ca0387 commit 571d238
Show file tree
Hide file tree
Showing 13 changed files with 3,495 additions and 1,045 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,20 +39,19 @@ Legacy | [(GitHub) Install](https://github.com/magicoflolis/twitter-translator/r
* Support for Twitter hover cards.
* Works while logged out!
* "Restore to Defaults" button.
* [ WIP ] Added help for each menu item.

### Supported

Translator | External | Website | Internal |
:---------:|:-----------:|:-----------:|:---------:|
Bing Microsoft Translator | ✅ |[link](https://www.bing.com/translator)| |
Bing Microsoft Translator | ✅ |[link](https://www.bing.com/translator)| UNTESTED |
DeepL Translate | ✅ |[link](https://www.deepl.com/translator)| ✅ |
Google Translate | ✅ |[link](https://translate.google.com/)| ✅ |
LibreTranslate | ❌ |[link](https://libretranslate.com/)| ✅ |
Lingva Translate | ✅ |[link](https://lingva.ml/)| ✅ |
MyMemory | ✅ |[link](https://mymemory.translated.net/)| ✅ |
Translate.com | ✅ |[link](https://www.translate.com/)| |
Yandex Translate | ✅ |[link](https://translate.yandex.com/)| |
Translate.com | ✅ |[link](https://www.translate.com/)| UNTESTED |
Yandex Translate | ✅ |[link](https://translate.yandex.com/)| UNTESTED |

## Documentation

Expand Down
2 changes: 1 addition & 1 deletion dist/css/twittertranslator.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/css/useSiteColors.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2,340 changes: 2,340 additions & 0 deletions dist/twittertranslator.dev.user.js

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,28 @@
},
"type": "module",
"scripts": {
"dev:Userscript": "node -r dotenv/config ./tools/userscript.js dotenv_config_path=./http-server/.env",
"dev:Start": "concurrently \"npm run dev:Userscript\" \"npm run dev:Server\" \"npm run dev:Sass\"",
"pub:Userscript": "node -r dotenv/config ./tools/userscript.js dotenv_config_path=./dist/.env",
"dev:Userscript": "node -r dotenv/config ./tools/userscript.js dotenv_config_path=./src/.env",
"dev:Sass": "sass -w --no-source-map ./src/sass/twittertranslator.scss:./dist/css/twittertranslator.css ./src/sass/useSiteColors.scss:./dist/css/useSiteColors.css ./src/sass/foreign.scss:./dist/css/foreign.css -s compressed",
"dev:Server": "http-server ./http-server -c5",
"dev:Server": "http-server ./dist -c5",
"build:Userscript": "node -r dotenv/config ./tools/userscript.js dotenv_config_path=./dist/.env",
"lint:Dev": "js-beautify -r ./http-server/twittertranslator.user.js --config .jsbeautifyrc.json",
"lint:Dev": "js-beautify -r ./dist/twittertranslator.user.js --config .jsbeautifyrc.json",
"lint:Beautify": "js-beautify -r ./dist/twittertranslator.user.js --config .jsbeautifyrc.json"
},
"devDependencies": {
"@swc/cli": "^0.1.57",
"@swc/core": "^1.2.189",
"@types/babel__core": "^7.1.19",
"@swc/core": "^1.2.220",
"@types/sass": "^1.43.1",
"autoprefixer": "^10.4.7",
"eslint": "^8.16.0",
"autoprefixer": "^10.4.8",
"concurrently": "^7.3.0",
"eslint": "^8.20.0",
"eslint-config-prettier": "^8.5.0",
"http-server": "^14.1.0",
"js-beautify": "^1.14.3",
"node-watch": "^0.7.3"
},
"dependencies": {
"http-server": "^14.1.1",
"js-beautify": "^1.14.4",
"node-watch": "^0.7.3",
"dotenv": "^16.0.1",
"sass": "^1.51.0"
"sass": "^1.54.0"
},
"repository": {
"type": "git",
Expand Down
File renamed without changes.
15 changes: 9 additions & 6 deletions src/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@
// Uncompressed source code:
// https://github.com/magicoflolis/twitter-translator/src

// Compiler:
// https://swc.rs/
'use strict';

let twCSS = `{foreign}`,
tetCSS = `{tetCSS}`,
nitterCSS = `{nitterCSS}`;
(() => {
let twCSS = `{foreign}`,
tetCSS = `{tetCSS}`,
nitterCSS = `{nitterCSS}`,
debugToggle = {debugToggle};

{code}
{code}

})();
Loading

0 comments on commit 571d238

Please sign in to comment.