Re:Ask HN: When did comments start being split across pages?
by Raphmedia on Wednesday March 08, 2017 @01:44PM
(#13822509)
This opinion is never popular because for some reason developers seem to be dead afraid of asking their user's output.
What I would do is add a dialog the first time the user press CTRL+F. Asks if the user wants the default or the override. Save this in a cookie or in the database.
Re:Ask HN: When did comments start being split across pages?
by SippinLean on Thursday March 09, 2017 @10:05AM
(#13829711)
"ctrl-f" was overly literal, I simply meant "a way to search the content of all the comments."
A simple (non-JS) "Search these comments" form would suffice, but I've never seen it implemented.
The JS in the page should attach an event to the link to append the new page at the bottom. Better: it should do it automatically when the scroll position is close enough to the end.
Bonus: the script should add a search box to search even in the content not yet in the page.
I googled if it's possible to intercept CTRL-F and handle it programmatically. It seems it is [1] but I don't know if I would do it: the user could be surprised to find a search box in a non standard position with a non standard behaviour. It reminds me of scrollbar hijacking.
[1] http://stackoverflow.com/questions/9159322/overriding-the-br...