Discuții » Cerere de creare

Script for finding text in same page on select

§
Postat în: 06-07-2016
Editat în: 06-07-2016

Script for finding text in same page on select

Hello,

Can anyone help me or, better, create a script for me?

What I need:

On selecting a text in a page, it will look for the exact or closest result on the same webpage, and highlighting that result in a blue color. The script need to be running at all times. If it is possible, can an activate and deactivate option be added? Can you also annotate all the codes so that I can understand what they do?




Thank you, whoever you may be, for looking into it.

§
Postat în: 07-07-2016

I don't think I will write this script, but some code examples might help you or whoever is interested in taking it on:

(1) Detect a user selection (e.g., onmouseup) -- I don't have any scripts that monitor this mouse event but there probably are many examples on the web

(2) Read a selection in the page

https://greasyforks.org/en/scripts/15254-exclude-term-on-google-firefox-only

(3) Find and highlight all matching text in a page

https://greasyforks.org/en/scripts/3719-text-highlighter-dynamic (simpler)
https://greasyforks.org/en/scripts/13007-text-highlight-and-seek

Postează un raspuns

Autentifică-te pentru a posta un răspuns.

长期地址
遇到问题?请前往 GitHub 提 Issues。