Skip to content
This repository has been archived by the owner on Jan 16, 2023. It is now read-only.

Commit

Permalink
fix pdf translate
Browse files Browse the repository at this point in the history
  • Loading branch information
theowenyoung committed Nov 7, 2022
1 parent 302c882 commit 2ec9d81
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/chrome_manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"default_locale": "en",
"name": "Immersive Translate - 沉浸式翻译",
"description": "支持整页翻译·双语显示·只翻译正文。布局全面优化,和浏览器阅读模式类似,对Twitter, Reddit等网站做了定制优化",
"version": "0.0.6",
"version": "0.0.7",
"homepage_url": "https://github.com/theowenyoung/Traduzir-paginas-web",

"commands": {
Expand Down
8 changes: 8 additions & 0 deletions src/contentScript/enhance.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,14 @@ const translateSelectors = [
"article .story-list-story__info__headline"

]
},
{
regex:[
"translatewebpages.org/result/.+$",
],
selectors:[
'div'
]
}
]

Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"default_locale": "en",
"name": "Immersive Translate - 沉浸式翻译",
"description": "支持整页翻译·双语显示·只翻译正文。布局全面优化,和浏览器阅读模式类似,对Twitter, Reddit等网站做了定制优化",
"version": "0.0.6",
"version": "0.0.7",
"homepage_url": "https://github.com/theowenyoung/Traduzir-paginas-web",

"browser_specific_settings": {
Expand Down

0 comments on commit 2ec9d81

Please sign in to comment.