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

Commit

Permalink
change default style
Browse files Browse the repository at this point in the history
  • Loading branch information
theowenyoung committed Nov 11, 2022
1 parent ee18ac0 commit 4ebaa93
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Change Log

## 0.0.19.2

- Support nature.com
- The Dual Style default style to none

## 0.0.19.1

- Support substack.com
Expand Down
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": "Let's experience immersive web translation, with bilingual simultaneous display and translation of only the important content.",
"version": "0.0.19.1",
"version": "0.0.19.2",
"homepage_url": "https://github.com/immersive-translate/immersive-translate",

"commands": {
Expand Down
4 changes: 4 additions & 0 deletions src/contentScript/enhance.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,10 @@ const translateSelectors = [
containerSelectors:[
".post"
]
},
{
hostname:"www.nature.com",
containerSelectors:"article"
}

]
Expand Down
2 changes: 1 addition & 1 deletion src/lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const twpConfig = (function () {
showOriginalTextWhenHovering: "no",
showTranslateSelectedButton: "yes",
isShowDualLanguage: "yes",
dualStyle:"underline",
dualStyle:"none",
customDualStyle:"",
showPopupMobile: "yes", // yes no threeFingersOnTheScreen
useOldPopup: "yes",
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": "Let's experience immersive web translation, with bilingual simultaneous display and translation of only the important content.",
"version": "0.0.19.1",
"version": "0.0.19.2",
"homepage_url": "https://github.com/immersive-translate/immersive-translate",

"browser_specific_settings": {
Expand Down
2 changes: 1 addition & 1 deletion src/options/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -272,11 +272,11 @@ <h3 class="w3-wide"><b>Immersive Translate</b></h3>

<p><b data-i18n="msgDualTranslationStyle">Bilingual display effect theme options</b></p>
<select id="dualStyle" class="w3-select w3-margin">
<option value="none" data-i18n="msgNone">Without Any Style</option>
<option value="underline" data-i18n="msgUnderline">Underline</option>
<option value="weakening" data-i18n="msgWeakening" >Weakening</option>
<option value="mask" data-i18n="msgMask" >Mask</option>
<option value="highlight" data-i18n="msgHighlight">Highlight</option>
<option value="none" data-i18n="msgNone">Without Any Style</option>
</select>

<p><b data-i18n="msgCustomTranslationStyle">Custom bilingual display CSS style (advanced, will override the default theme)</b></p>
Expand Down

0 comments on commit 4ebaa93

Please sign in to comment.