Comment by lxgr
9 days ago
> with the singlefile extension it's pretty easy to store things you can see but the scraper gets blocked on
FWIW, at least on iOS, it's possible to inject Javascript into the web site being currently displayed by Safari as a side effect of sharing a web link to an app via the share sheet.
Several "read it later" style apps use this successfully to get around paywalls (assuming you've paid yourself) and other robot blockers. Any plans for Linkwarden to do this (or does it already)?
Any docs on this? I didn't know this was a thing.
I believe the key search term was NSExtensionJavaScriptPreprocessingFile, e.g. documented here: https://developer.apple.com/library/archive/documentation/Ge...
https://docs.linkwarden.app/Usage/upload-from-singlefile
That's cool, but also requires using the Singlefile extension (and granting it access), right?
What I like about the share sheet JS method is that it doesn't get access to most of my browsing sessions. (The shared-to app getting access to my browser session is somewhat unexpected, though.)