This is an attempt to polyfill the Text Fragments feature for browsers that don't support it natively.
The text fragment link
#:~:text=This%20article%20is,kept%20as%20a%20pet
rendered in Safari on an iOS device, with
inject.js
injected via Web Inspector.
There are still many limitations and the code is very hacky, but it serves
well as a proof of concept. This could be used in Chrome for iOS by injecting
the script with
WKUserScript
.
Apache 2.0. This is not an official Google product.