Comment

Comment by xg15

> According to the research team, in most of the cases they analyzed, the Chrome extensions disabled CSP and other security headers “to introduce additional seemingly benign functionalities on the visited webpage,” and didn’t look to be malicious in nature.

Yes, because Chrome's architecture forces extensions to do this, ironically in the name of security.

Normal extension code can access a page's DOM but it cannot interact with any scripts on the page.

If you want your extensions to interact with the page's JS, the only way is to play man-in-the-middle and inject your own JS as if it was loaded by the page.

parent xg15 5 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton