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