Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

大佬,能用(用户)脚本调用你的扩展吗🙏 #163

Open
KnIfER opened this issue Jul 20, 2024 · 2 comments
Open

大佬,能用(用户)脚本调用你的扩展吗🙏 #163

KnIfER opened this issue Jul 20, 2024 · 2 comments

Comments

@KnIfER
Copy link

KnIfER commented Jul 20, 2024

v2ex网站转过来的,对面immersive推荐了这个扩展,试了下感觉挺好的,尤其翻译面板还能查词。

希望能用脚本调起翻译面板,这样就能自定义快捷键、甚至设置手势,而不是悬浮球。

沙拉查词的半透明悬浮球已经算好的了
,但我仍不喜欢在选择文本的时候,页面上随机位置出现一个遮挡物,输入框里也会发生。。

所以,还是希望能出现这样可以自定义的可能。,我在另一个帖子里说过:Immersive-translate / 【快捷键】关于翻译快捷键的问题讨论 / Issue #1749 / immersive-translate/immersive-translate

需要content脚本与user.js、background.js间的通信(dispatchEvent、chrome.runtime.sendMessage等等)

@fishjar
Copy link
Owner

fishjar commented Jul 22, 2024

你是希望用快捷键唤起划词翻译的框?已经是实现了的。

另外你说的需求不是很明白,不知道规则设置里面的几个钩子函数和注入js功能是否满足

@KnIfER
Copy link
Author

KnIfER commented Jul 25, 2024

方便的快捷键已经划给“抹布翻译了”

需求是自定义手势(比如划词后,迅速往下滑动鼠标,类似于拉弓的手势),技术上需要用脚本dispatchEvent调起插件功能。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants