minbrowser / min

A fast, minimal browser that protects your privacy
https://minbrowser.org/
Apache License 2.0
8.01k stars 709 forks source link

Scroll to query when opening full-text search result #2508

Closed PalmerAL closed 2 weeks ago

PalmerAL commented 1 month ago

This uses the text fragment API to generate a fragment based on the search query; Chromium will then try to scroll to the correct place in the page when the URL is opened.

This may not work in all cases (eg for certain combinations of special characters it may fail), but it works on the pages I've tested so far.

https://github.com/user-attachments/assets/8fd7b216-10df-4695-b3a2-5392f9812efb