Estoy tratando de crear una extensión básica de Chrome que solo muestre lo que hay en el código HTML cuando se hace clic en él. En este momento, solo abre las opciones de extensión cuando se hace clic.
El archivo html se carga en chrome://extension:extensionname/popup.html
<!DOCTYPE html> <html> <head> <link rel="stylesheet" href="button.css"> </head> <body style="background-color: #10142c"> <div class="container mt-3" style="width: 450px;"> <table width=100% height=100%> <tr> <td style="text-align: center; vertical-align: middle;"> <img id="button" src="dn.png" width="250px" /> </div> </td> </tr> </table> </div> <script src="index.js"></script> </body> </html>manifiesto.json
{ "name": "Title", "version": "1.0.0", "description": "description..", "manifest_version": 3, "author": "Ted", "browser_action":{ "default_popup": "popup.html", "default_title": "title" } }Resultado al hacer clic en la extensión solo abre este menú:
