Do whatever you want with this code. I only ask that you check out Dash, my Snippet Manager and Documentation Browser app.
Drop-in WebView subclass that adds Safari-style in-page search-result highlighting.
- Highlight search results.
- Show position of search results by highlighting the scrollbar.
- Maintain text size (zoom level) between launches.
- Avoid JavaScript.
- Avoid blocking the main thread as much as possible.