In the development of a Firefox Add-on, how would I create a new "about:" page if it is possible? -
i have made small extension google chrome , port on firefox. however, appears first thing extension in chrome (replaces new tab page custom page) not allowed in firefox anymore. wondering if create , "about:apod" page load plugin content. if not, how can make plugin visible in firefox?
manifest (chrome):
{ "manifest_version": 2, "name": "nasa apod home page", "chrome_url_overrides" : { "newtab": "index.html" }, "permissions": [ "https://api.nasa.gov/*" ], "version": "0.1" }
then, makes index.html "newtab" page:
<!doctype html> <html> <head> <title>apod</title> <script type="text/javascript" src="jquery-3.2.1.js"></script> <script type="text/javascript" src="main.js"></script> <link rel="stylesheet" type="text/css" href="style.css"> <link rel="stylesheet" href="https://cdn.linearicons.com/free/1.0.0/icon-font.min.css"> </head> <body> <div id="info"> <span id="time"></span> <span id="title"></span> <span id="desc_expand" class="lnr lnr-chevron-up"></span> <span id="desc"></span> </div> </body> </html>
Comments
Post a Comment