Search code examples
javascriptgoogle-chrome-extensionsidebar

Chrome Extension - Turn my default Popup into a Sidebar


I have a functional default Popup and now I want to instead inject that popup.html with an iframe into the Dom. Have it toggled to show and hide with the browseraction onclick. I can't find any good solution on this. Any suggestions would be appreciated.


Solution

  • if I understood correctly, use content script
    or execute script that add the iframe dynamically via the chrome.tabs.executeScript() method

    Running javascript from contentscript is the best way to manipulate the DOM