Excluding elements from search results when using find.find

On the off chance somebody here is familiar with this API: I’ve spent some time trying to make using browsers somewhat bearable, and tried - with limited success - to re-implement search using find.find, with the search input in a HTML dialog.

The problem with this approach is that the search query itself is treated as part of the results:

https://kyu.de/pictrs/image/3cff955b-68e0-4145-98a6-f21756247011.png

So far I haven’t seen a way to have that excluded. Does anybody have ideas outside of “throw this away and reimplement with JavaScript”?

The code is here

  • All
  • Subscribed
  • Moderated
  • Favorites
  • firefox@lemmy.world
  • DreamBathrooms
  • mdbf
  • ethstaker
  • magazineikmin
  • GTA5RPClips
  • rosin
  • thenastyranch
  • Youngstown
  • osvaldo12
  • slotface
  • khanakhh
  • kavyap
  • InstantRegret
  • Durango
  • provamag3
  • everett
  • cisconetworking
  • Leos
  • normalnudes
  • cubers
  • modclub
  • ngwrru68w68
  • tacticalgear
  • megavids
  • anitta
  • tester
  • JUstTest
  • lostlight
  • All magazines