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

聚焦模式中划词翻译等插件无法使用 #49

Open
jinyu121 opened this Issue Jul 16, 2017 · 5 comments

Comments

Projects
None yet
2 participants
@jinyu121

jinyu121 commented Jul 16, 2017

大致看了一下,聚焦模式好像是把特定的div的zindex设置成了2147463847(佩服……真大胆)

然而一些划词翻译等插件“点击翻译”按钮的zindex设置的是999或者9999……于是它们就弹不出来了。

PS: Google Translate“划词翻译按钮”zindex也是2147483647……但是翻译结果zindex是1201。

@Kenshin

This comment has been minimized.

Owner

Kenshin commented Jul 16, 2017

的确是这样,不仅如此,还有阅读模式。
原因是有些网页的 z-index 7设置没有规律,为了不遮挡阅读模式,降低体验性,因此这么设计。

除此之外,阅读模式的根标签在 而非 这也是某些扩展不好用的原因。

暂时的办法只能跟这些扩展作者协商。 😩

或者你有没有好的想法?

@Kenshin

This comment has been minimized.

Owner

Kenshin commented Jul 16, 2017

#19
也是同样问题。

话说,你提了好多建议,非常感谢,简悦有你们这样的用户才是我开发下去的原动力。

@Kenshin Kenshin added the bug label Jul 16, 2017

@jinyu121

This comment has been minimized.

jinyu121 commented Jul 16, 2017

个人不会JS不会前端(真的是前端改变世界的节奏),只能说一下大致想法。

像适配网站一样,收集一些常用的插件,看看它们的弹出层zindex是多少,然后将这些class的zindex强行更改到一个合理的值?

或者你集成进来一个划词翻译也是极好的~ /笑

@Kenshin

This comment has been minimized.

Owner

Kenshin commented Jul 17, 2017

啊哈,看到 z-index ,下意识觉得是同行~
等我回去后,联系下插件作者,看看能否协商一下。

@Kenshin

This comment has been minimized.

Owner

Kenshin commented Sep 25, 2017

如果你在使用类似 cVim Vimium 的快捷键扩展,建议试试 Surfingkeys 已经完美的适配了阅读模式。

另外,我也跟 划词翻译 的作者沟通了,新版发布后,就可以适配阅读模式了。

@Kenshin Kenshin added plugins and removed bug labels Aug 30, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment