logoalt Hacker News

codegladiatortoday at 6:06 AM3 repliesview on HN

How did chrome webstore team approve use of eval/new function in chrome plugin ? Isn't that against their tos ?

  Execute JavaScript code in the context of the current page

Replies

SquareWheeltoday at 6:22 PM

Not having looked at the extension, I would assume they use the chrome.scripting API in MV3.

https://developer.chrome.com/docs/extensions/reference/api/s...

https://developer.chrome.com/blog/crx-scripting-api

anamexistoday at 6:08 AM

Doesn’t basically every Chrome extension execute JavaScript in the context of the page?

show 1 reply
miki_oomiritoday at 11:38 AM

I don't think they mean executing locally JS code generated server-side.

show 1 reply