你正在訪問的內容是外部程式的映像位址,僅用於使用者加速訪問,本站無法保證其可靠性。當前的連結位址(單點即可複製)為 https://greasyfork.org.cn/zh-CN/scripts/3719-text-highlighter-dynamic/discussions/59003,源站連結 點此以跳轉。
Highlights User-defined Text
< 脚本 Text Highlighter - Dynamic 的反馈
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.org.cn/en/scripts/13007-text-highlight-and-seek
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.
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.