Greasy Fork is available in English.

Text Highlight and Seek

Automatically highlight user-defined text with Seek function (2019-09-22)

< Valutazione su Text Highlight and Seek

Domanda/commento

§
Pubblicato: 07/11/2015

can not highlight any words in http://www.microsofttranslator.com/

I use http://www.microsofttranslator.com/ to translate this page:
http://www.vector.co.jp/vpack/filearea/win/art/

I choose Side-by-Side Viewer, the link is:
http://www.microsofttranslator.com/bv.aspx?&lo=SS&from=ja&to=zh-CHT&a=http%3A%2F%2Fwww.vector.co.jp%2Fvpack%2Ffilearea%2Fwin%2Fart%2F

The page can not be highlight.

Hope the problem can be solve.

Thanks.

§
Pubblicato: 07/11/2015
Modificato: 07/11/2015

Yes, the translations are in framed pages, and line 39 of the script exits immediately in framed pages:

https://greasyfork.org/en/scripts/13007-text-highlight-and-seek/code#n39

As a temporary workaround, you can edit the script to comment out that line, as follows:

Firefox: On the Add-ons page, User Scripts selection, right-click Text Highlight and Seek and choose Edit. This will open the script in a Scratchpad editing window.

Chrome: On the Tampermonkey dashboard, click Text Highlight and Seek to display the Editor tab.

Both browsers: Add // to the beginning of line 39 to deactivate it. Save your change and reload the page you want to highlight to apply the changed script.

I'm working on making this an option in the next version of the script but wasn't able to finish it this morning.

IMPORTANT: Currently if you make a change to the keyword list or highlight status in one frame, it is not coordinated with other frames. This is a difficult problem to solve, especially across sites.

§
Pubblicato: 07/11/2015

Also, the address of the frames changes, so might need to include * while working with this site.

§
Pubblicato: 08/02/2021

Much appreciated for the author Jefferson for making this, it helps me a lot :)

I just noticed that the script doesn't work for iframe (which is prefectly reasonable), and I Googled and found this history post as of 2015.
Just wondering, whether we can go around this issue by some ways?

Many thanks again Jefferson!

§
Pubblicato: 08/02/2021

Hi afterever, have you turned on frame highlighting using the Options section of the script's bar? That should allow an H to appear in the frame. Whether the highlighting actually works there probably depends on the site, however.

§
Pubblicato: 09/02/2021

Thanks Jefferson for the prompt response and pointer, now I found the Options.


I am trying to highlight chess player's name, for example, Bruce on this page.
https://impactcoachingnetwork.org/summerleaguestandings
The frame is actually coming from this URL https://318chess.com/icnroster/corona_standings.html

So I picked "Any Site" in the Framed Pages, but seems not working -- no H showing up in the frame...

Could you please take a look, as to how to make it work?
many thanks in advance!!

§
Pubblicato: 09/02/2021

Hi afterever, did you add both of the sites to the script includes/matches:

https://impactcoachingnetwork.org/*
https://318chess.com/*

I get the "H" button in the frame when I do that. However, because they are separate pages and the script doesn't actually communicate across the frame boundary, any changes in one are not reflected in the other. If I ever convert this to an extension, I could fix that.

§
Pubblicato: 09/02/2021

Thanks again Jefferson for following up, I really appreciate your answering.

So I was mostly use Firefox with Greasemonkey, but doesn't see the 'H' inside the 318chess frame.

Then I suddenly wanted to try Chrome + Tampermonkey, and the amazing 'H' shows up and highlight DOES WORK inside the frame!!

Maybe there is something different for these two browsers...

§
Pubblicato: 09/02/2021

I'm using Firefox with Violentmonkey. I haven't tested Greasemonkey for a loooong time. I'll see whether I can take a look.

§
Pubblicato: 09/02/2021

I just switched to ViolentMonkey with Firefox and it worked perfectly :D

Thank you so much, I very very much appreciate your continuous help!!

Pubblica risposta

Accedi per pubblicare una risposta.