Comments (4)
实际上不仅仅是链接(即 a 标签)内的文本,以 Github 为例,它的很多按钮其实都是 span ,但是样式调成了按钮。也就是说,设定了 cursor: pointer;
的元素都需要这个功能。
from crx-selection-translate.
实现思路 #271 (comment)
from crx-selection-translate.
使用上述实现思路有俩个问题:
- 只对 a 标签生效
- 实现方式需要再完善。目前试了下在按下 Ctrl 时加入样式,松开时移除,但会遇到一种情况,按下 Ctrl 键的途中焦点切换了(例如按下 Ctrl 后单击鼠标右键选择“检查”打开开发人员面板,这时焦点就跑到开发人员面板里了),这个时候松开 ctrl 的话是检测不到的,会导致样式还留在页面中
from crx-selection-translate.
针对辅助键的改进,我专门开了一个 issue #855 ,其中包含按下辅助键时让链接可翻译。后续进展会更新在 #855 中,这个就先关闭了。
from crx-selection-translate.
Related Issues (20)
- 是否能支持对epub文件的翻译
- 翻译文本正则表达式 HOT 3
- 划词翻译出来的结果里面只有英语 为啥没有美语 HOT 1
- 全文翻译改进(网页内存在多种语言) HOT 1
- 全文翻译规则 选择翻译或者不翻译的规则 HOT 2
- 选中文本无法翻译 HOT 1
- 将【ChatGPT】翻译服务拆分为【ChatGPT Web】和【OpenAI 接口】两个翻译服务
- VIP账号,但配置的KEY不能同步; HOT 2
- 独立翻译窗口同时勾选“自动复制”与“持续监听剪切板”导致中英循环互译 HOT 2
- 点击扩展按钮和从任务栏托盘启动时时弹出独立翻译窗口 HOT 4
- 使用【必应词典】会导致无法使用 Bing AI HOT 3
- 鼠标移入翻译 HOT 1
- 收藏夹内大量翻译显示语种为 undefined,复现条件不明但屡次出现 HOT 1
- 希望可以优化一下翻译的网页排版和语言识别 HOT 1
- 希望可以添加自动翻译特定域名网站的功能 HOT 1
- github上 网页翻译没有反应 HOT 1
- 某些页面全文翻译显示错误 HOT 3
- 安装扩展后,edge无法使用后台运行功能 HOT 3
- 同一个页面多种语言翻译问题 HOT 1
- DeepL 的认证密钥和验证密钥是一回事吗?我按照认证教程没有找到认证密钥 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from crx-selection-translate.