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

Commit

Permalink
better for github issue list
Browse files Browse the repository at this point in the history
  • Loading branch information
theowenyoung committed Nov 22, 2022
1 parent a4417d5 commit ec52d0d
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- Support Twitter Card title translate
- Support getrevue.co
- Support https://www.pixelmator.com
- Better for github issues list

## 0.0.34

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.34",
"version": "0.0.35",
"homepage_url": "https://github.com/immersive-translate/immersive-translate",

"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 @@ -412,6 +412,14 @@ async function getNodesThatNeedToTranslate(root,ctx,options){
originalDisplay = "block";
}

}else if(pageSpecialConfig && pageSpecialConfig.selectors){
// check is inline element
if(inlineElements.includes(node.nodeName.toLowerCase())){
// originalDisplay = "block";
const br = document.createElement("br");
copyNode.appendChild(br);
}

}


Expand Down
6 changes: 2 additions & 4 deletions src/lib/specialRules.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ const specialRules = [
},
{
"hostname": "github.com",
"selectors":[".markdown-title"],
"containerSelectors": ".markdown-body",
"detectLanguage":true
},
Expand Down Expand Up @@ -324,9 +325,6 @@ const specialRules = [
},
{
"regex":"www\.pixelmator\.com\/community\/",
"selectors":[".content",".topic-title",{
"selector":".topic-body",

}]
"selectors":[".content",".topic-title",".topictitle"]
}
]
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.34",
"version": "0.0.35",
"homepage_url": "https://github.com/immersive-translate/immersive-translate",

"browser_specific_settings": {
Expand Down

0 comments on commit ec52d0d

Please sign in to comment.