Skip to content

a Bug for GitHub-table-of-contents Script #117

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

Closed
dnknn opened this issue Jul 16, 2020 · 2 comments
Closed

a Bug for GitHub-table-of-contents Script #117

dnknn opened this issue Jul 16, 2020 · 2 comments

Comments

@dnknn
Copy link

dnknn commented Jul 16, 2020

https://github.com/Mottie/GitHub-userscripts/wiki/GitHub-table-of-contents
https://greasyfork.org/scripts/18344

This script is excellent and practical.

But when Enable Chrome built-in translation, there is no response to clicking on Toc, can't jump to Toc location.

Please see the address bar, URL of ⚓#anchor(URL-hash) will not change automatically,
so, it can not jump to Toc location.

bug

can you fixed it

@Mottie
Copy link
Owner

Mottie commented Jul 17, 2020

Hi @dnknn!

Hmm, it looks like Google translate breaks the links by adding an unclickable <font> element inside the links. I think I have a fix. Let me know if it works for you.

@dnknn
Copy link
Author

dnknn commented Jul 17, 2020

Hi:) @Mottie
👍You are so clever, perfect with one 🅲🆂🆂

.ghus-toc li a font {pointer-events:none}
Plus this can indeed penetrate to click on the link.
This is a flaw in Google Translate

Perfect, thanks a lot again @Mottie

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

No branches or pull requests

2 participants