
the tricky part is chrome extensions can't inject into file input elements directly due to sandboxing -- you'd need to intercept the click, swap in a custom overlay, then programmatically write to the FileList via DataTransfer API. Puppeteer does this in test environments but doing it cross-origin in prod is a different beast
English


