I’m currently working on a little personal project where I need to interact a lot with my MetaMask wallet.
What I’m trying to accomplish is that whenever the MM popup is shown to confirm the action, that the Confirm is clicked automatically, but only when I’m connected to a specific page.
Now I know that this could raise security concerns, but I’m working on a separate machine with only one MM on it and only to be used with one specific page, so I’m not worried about security at this point.
Looking at the pagesource from the popup-page of MetaMask, I can extract the page by getting the value from this div:
<div class="confirm-page-container-summary__origin">https://thesite.io</div>
I have tried to modify the Notification.html to include a script which is run when the body is loaded. However when I tried it, the extension was automatically disabled. I had to “repair” it by downloading the extension again and importing my wallet again.
I’m guessing there’s some sort of checksum that happens so that any tampering results in disabling the extension.
Does anyone know if there’s a way to work around this issue?
Thanks