Text Highlighter - Dynamic

Highlights User-defined Text

< Feedback on Text Highlighter - Dynamic

Review: Good - script works

§
Posted: 08-08-2020

Fails to work even on this very site with eg. words that are inside the script source window itself - eg. it works on, say, "script" as a word on this page but it does not work on the word "SITES" in the source code of the script itself, as displayed in the source code window.

Jefferson ScherTác giả
§
Posted: 09-08-2020

Hi, this script excludes preformatted (<pre>) elements. To work around that, you can edit the script. On the following line:

'and not(ancestor::pre)]',

change pre to something else like xyz:

'and not(ancestor::xyz)]',

And after you reload, the script should search inside <pre> elements.


More generally, I am not updating this old script. I may continue to update this newer one that has an option whether to search in pre elements:

https://greasyfork.dpdns.org/en/scripts/13007-text-highlight-and-seek

§
Posted: 10-08-2020

Thanks, that helps. I wouldn't have mentioned it at all if it was only about some quoted code but I saw similarly unaffected elements on some other page while testing, and that was going to be a problem, so I went looking for what else it doesn't work on, hence my post. And I do appreciate the swift reply.

Post reply

Đăng nhập để bình luận

长期地址
遇到问题?请前往 GitHub 提 Issues,或加Q群1031348184

赞助商

Fishcpy

广告

Rainyun

一年攒够 12 元

云驰互联

云驰互联