ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Post New Requests Here

(ON HOLD) Idea: "FAIPS" - Find All In Page Search

(1/2) > >>

CodeTRUCKER:
Hi,

First off, I'm not even sure this utility request would be qualified as a "Coding Snack," but hey, what do I know? So, here's hoping! :)

There are numerous "Find In Page Search" (FIPS) utilities available. My need is for a FIPS which will find all character strings, but instead of searching for a single string the "Find All In Page Search" (FAIPS) would need to find all items from a list on the page. Here are some specifics...
[*] The purpose is for research. Essentially, the researcher would populate an "Always On Top," floating and resize-able "word list" box to take to candidate websites and execute the search which would locate any/all hits.
[*] A "No Hits On Page" pop-up message box if no words from the list are found.
[*] The word list would need to have at least 100 user-entered words to search, but for the prototype we can use 10 words to test the function. The candidate resources are very long.
[*] All hits would need to have persistent background highlights.
[*] Highlight color would be user-configurable. Different websites use different colors.
[*] "Select All" button to highlight all hits for all words in the word list.
[*] If a word in the list were selected each hit for that word would be the only hit(s) highlighted.
[*] "Find First" button to locate the first hit on the website.
[*] "Find Next" button to locate the next hit.
[/list]

The effect would be like doing a word search once instead of a 100 different "Find In Page" word searches. I have no idea how feasible it would be to make this work and I would understand why no one would want to tackle it, but I thought I would ask anyway.

I will be trying to make this work myself, but the outcome is dubious. I used to be a fair programmer, but nowadays, eh not so much. I have looked into AHK and have submitted a request for help, but there are some pretty sharp folks on DC too!

I am thinking the first thing I need to do is to make a working copy of the webpage itself. It is the only way I can think of to write additional HTML which I believe the highlighting would need. I also suspect there would have to be a recursive function for each word searched from the list which seems like each successive search would have to re-write the HTML before going to the next word in the list. If there is an easier way I am not aware of it. Anyway, any assistance would be appreciated.

Please let me know if I can be of any help clarifying, etc.

Nod5:
A quick search suggests there are various Chrome and Firefox extensions for multi word search and highlight functionality. It could help any coders who might have a go at this if you describe which such extensions you have already tried and what you find lacking in them.

Is your goal a standalone tool for offline searching in previously downloaded .html file copies of websites? Or a browser extension?

CodeTRUCKER:
Thanks for the reply. I guess you are a better searcher than I am. My searches came up with nothing. I did continue to flop about like a fish out of water and stumbled upon something like a Greasemonkey script (which I don't understand how to make work). I found the script at https://userscripts-mirror.org/scripts/show/292083.

I think this might suffice if I could make it work, but alas, no joy so far.

It would be nice if the FAIPS could work with any text, pdf, doc, etc., but I would be happy to make it work on just a website for now. I'm guessing making it work on a website would be easier?

CodeTRUCKER:
Also, we don't have to reinvent the wheel. If anyone knows of something which can do something near what I am looking for to search web pages, I am open to suggestions.

CodeTRUCKER:
Okay, I have no idea why, but I installed Chrome and the "MultiHighlighter" extension a 2nd time and this time it worked. It did not work the first time I tried. I'm still not keen on using Chrome (Google), but it does work and the MultiHighlighter extension didn't die when I entered my eighty-plus count word list. It's usable for my needs so I can put this request ON HOLD for now. Thanks for your efforts.

Navigation

[0] Message Index

[#] Next page

Go to full version