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

Commit

Permalink
update icon
Browse files Browse the repository at this point in the history
  • Loading branch information
theowenyoung committed Nov 11, 2022
1 parent 314b23b commit 14a3d74
Show file tree
Hide file tree
Showing 17 changed files with 30 additions and 9 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,15 @@ jobs:
run: |
content=`cat ./src/manifest.json`
echo "::set-output name=version::$(echo $content | jq -r '.version')"
- name: Chrome Extension upload & publish
uses: Passiverecords/chrome-extension-upload-action@1.4.1
with:
refresh-token: 'xxxxxxxxxxxxxxxxxxxxxx'
client-id: 'xxxxxxxxxxxxx'
client-secret: 'xxxxxxxxxxxx'
file-name: './extension.zip'
app-id: 'xzc12xzc21cx23'
publish: true
- name: "web-ext build"
id: web-ext-build
uses: kewisch/action-web-ext@v1
Expand Down
Binary file added assets/icon-512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/icon.psd
Binary file not shown.
5 changes: 4 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ Let's experience immersive web translation, with bilingual simultaneous display

### Chrome/Edge

chrome,edge商店的升级和发布正在进行中,目前需要手动安装:

Chrome商店已上架,可以[直接下载](https://chrome.google.com/webstore/detail/immersive-translate/bpoadfkcbjbfhfodiogcnhhhpibjhbnh),如果你想最快体验到新版,也可以直接在[Release页面](https://github.com/immersive-translate/immersive-translate/releases)下载最新构建的版本。

Edge商店正在提审中,你可以用chrome商店的版本,或者手动安装:

1.[这里](https://github.com/immersive-translate/immersive-translate/releases)下载chrome的压缩包
2. 解压到一个以后不会删除的文件夹
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.2",
"version": "0.0.20",
"homepage_url": "https://github.com/immersive-translate/immersive-translate",

"commands": {
Expand Down
16 changes: 15 additions & 1 deletion src/contentScript/enhance.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,18 +221,31 @@ function getPageSpecialConfig(ctx){
}
}
}

// check is clearly reader
// html tag class clearly-overflow
// console.log("document.documentElement", document.documentElement.classList)
// if(document.documentElement && document.documentElement.classList.contains('clearly-overflow')){
// specialConfig = {
// containerSelectors:[
// "div#container"
// ]
// }
// }

// handle nitter, there are too many domains, so we detect it by meta, and element
// if og:sitename is "Nitter", and there is class name tweet-content, then it is nitter
const nitterMeta = document.querySelector('meta[property="og:site_name"]');
if(nitterMeta && nitterMeta.getAttribute('content') === 'Nitter'){
const nitterTweetContent = document.querySelector('.tweet-content');
if(nitterTweetContent){
return {
specialConfig = {
name:"nitter",
selectors:['.tweet-content','.quote-text']
}
}
}
return specialConfig
}


Expand Down Expand Up @@ -302,6 +315,7 @@ function isDuplicatedChild(array,child){
function getNodesThatNeedToTranslate(root,ctx,options){
options = options || {};
const pageSpecialConfig = getPageSpecialConfig(ctx);
console.log("pageSpecialConfig", pageSpecialConfig)
const twpConfig = ctx.twpConfig
const isShowDualLanguage = twpConfig.get("isShowDualLanguage")==='no'?false:true;
const allBlocksSelectors = pageSpecialConfig && pageSpecialConfig.selectors || []
Expand Down
5 changes: 0 additions & 5 deletions src/icons/Green_translation_icon.svg

This file was deleted.

Binary file removed src/icons/icon-128-1.png
Binary file not shown.
Binary file modified src/icons/icon-128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/icons/icon-16-1.png
Binary file not shown.
Binary file modified src/icons/icon-16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/icons/icon-32-1.png
Binary file not shown.
Binary file modified src/icons/icon-32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/icons/icon-512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/icons/icon-64-1.png
Binary file not shown.
Binary file modified src/icons/icon-64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.2",
"version": "0.0.20",
"homepage_url": "https://github.com/immersive-translate/immersive-translate",

"browser_specific_settings": {
Expand Down

0 comments on commit 14a3d74

Please sign in to comment.