4 ms·
I'd actually like an extension along the lines of "This is not Google Docs, for fuck's sake", that just disables all these APIs that are only ever useful with r
by majewsky 10y ago
I'd actually like an extension along the lines of "This is not Google Docs, for fuck's sake", that just disables all these APIs that are only ever useful with rich apps, but not with content-heavy websites, for example:
- copy/paste hijacking
- sensor access: microphone, camera, GPS, etc.
Maybe even go further and introduce some sort of rate-limiting for
- XHR requests
- relayout events
to save power and data.
- artursapek 10y agoIncidentally, what are these APIs? I am building a rich content app (SVG editor) and have been starting to think about what copy + paste will look like.
- akubera 10y agoI think you want to investigate the "ClipboardEvent" web API. Try starting here: https://developer.mozilla.org/en-US/docs/Web/API/ClipboardEvent https://developer.mozilla.org/en-US/docs/Web/API/ClipboardEv...
- artursapek 10y agoThanks!
- ben_jones 10y agoCouldn't you just load a JS file before 3rd party scripts and overload those methods? Preferably in a way that won't break the site.