Re:A New Attack Can Unmask Anonymous Users on Any Major Browser
by Aachen on Saturday June 03, 2023 @06:25PM
(#36181106)
That makes sense and I knew this, but browsers are the main use case for me, not external programs
Re:A New Attack Can Unmask Anonymous Users on Any Major Browser
by xk_id on Saturday June 03, 2023 @09:22PM
(#36182110)
Yeah, so your script.sh could send the URI received in its positional argument to a browser with the configuration you need (and substitute newscheme:// to https://). I think it’s 100% doable
On Mac, you can for example create a simple App in AppleScript with the following code:
Then, using a tool like “SwiftDefaultApps”, you can configure this new AppleScript app to be the default app for the http/https schema.In script.sh, which receives the clicked url as the its first positional argument, you can then run any arbitrary logic that you require.
So this idea would work if the links you wanted to open were coming from another app. If they come from inside the browser, I would suggest writing an additional browser extension that replaces all http/https links in a page with an invented URI schema, like newschema://. Then the browser would pass those links to the OS for handling and then you would have full control over how to handle this new schema.
Hope this makes sense.