adaliabooks: Right, I've added the option to highlight your search terms in the results and updated to version 1.0 :)
Looks good. Cheers and congrats.
adaliabooks: Just tick the check box if you want to highlight (it's disabled by default, I might look into saving your configuration so that it will remember what boxes you ticked for your last search)
It would be very nice to be able to save one's configuration, as I expect I would want to run every search with highlighting set (and will forget to check it 90% of the time). Based on BE experience, you should probably save settings in the userscript's storage and not in the browser's localStorage (see
and [url=http://www.gog.com/forum/general/barefoot_essentials_2_gogcom_enhancement/post786]here).
adaliabooks: As for an abort feature... I'm not sure exactly how possible it is, it is possible to abort the AJAX requests, but apparently that basically means you ignore the results, but the request can still go through server side... I don't really know enough javascript and networking stuff to know exactly what that would mean, but it might be that it would cancel the search but not stop it slowing up your computer..
Would a pop up that asks if you sure you want to search over 300 pages (or something similar) be enough? That way you could abort the search before it even starts.
Yes. The pop up would be enough for me, although I recommend a much lower value for the warning, say 100 or 69 pages. Remember that the entire "what did just update" thread is 199 pages for me and the whole "general discussion" forum is at the moment merely 162 pages for me, so a 300 setting would be meaningless.
adaliabooks: I've tried to find a solution to let you search more than than the 500 page maximum it currently allows, but tests showed my idea didn't work and I ended up locking myself out of the forum last night by making too many requests... I'll keep working on it though.
I do have an idea on how to find threads based on the contents of them (although it wouldn't work for users, only post content) which basically involves running the site search on each thread and seeing if that returns any results and including the thread if it does, so I might try that and see how it goes.
That's a nifty idea, but remember that:
1) GOG puts a limit on the number of results it returns (199 for threads within a forum; 100 for posts within a thread)
2) GOG treats multi-word searches (e.g. aaa bbb ccc) differently than you do. Their default is to search for each word separately (e.g. aaa OR bbb OR ccc), not for the multi-word string as you do. To search for a multi-word string one needs to use double quotes.
3) GOG treats single-word search differently than you do. They search only for whole words (e.g. will not find setting when searching for set), whereas you search for any match.
4) GOG ignores many non-alphanumeric characters (e.g. you cannot search for "English+French+German+Italian+Spanish" because GOG ignores the "+" characters (replaces it with space)
5) GOG does not allow search terms shorter than 3 characters (had to change my reports in the "Good News Price Updates" threads to allow people to search for region names (e.g. from DE to regDE)).
Needless to say, your approach is a lot more user-friendly than GOG's (at least for me).
If you go this way, I would also recommend a pop-up warning if the number of threads identified by GOG is high, before embarking on the second phase of you searching within the GOG-picked threads.