diff manifest.json.in @ 6:5d7c13e998e9

Create feed previews using a stream filter Instead of replacing the feed document with an XHTML preview from a content script after it has already been rendered, create an XHTML preview using a stream filter before it is passed into the rendering engine and use an XSL style sheet to convert it to HTML. This has two advantages, firstly it results in an HTMLDocument with the full HTML DOM available and secondly it avoids rendering the document twice. Refactor the feed preview creation and split parsing and rendering into seperate modules.
author Guido Berhoerster <guido+feed-preview@berhoerster.name>
date Thu, 08 Nov 2018 16:30:34 +0100
parents bc5cc170163c
children c271192aac9d
line wrap: on
line diff
--- a/manifest.json.in	Sun Nov 04 10:03:05 2018 +0100
+++ b/manifest.json.in	Thu Nov 08 16:30:34 2018 +0100
@@ -24,24 +24,18 @@
         "webRequestBlocking"
     ],
     "background": {
-        "scripts": [ "background.js" ]
+        "page": "background.html"
     },
     "content_scripts": [
         {
             "matches": [ "http://*/*", "https://*/*", "file:///*" ],
-            "js": [
-                "content_scripts/feed-probe.js",
-                "content_scripts/feed-preview.js"
-            ]
+            "js": [ "content_scripts/feed-probe.js" ]
         }
     ],
     "web_accessible_resources": [
-        "web_resources/feed-preview.xhtml",
-        "web_resources/arrow.svg",
-        "web_resources/style/common.css",
-        "web_resources/style/entry-content.css",
-        "web_resources/style/feed-preview.css",
-        "web_resources/style/photon-colors.css"
+        "web_resources/xhtml-to-html.xsl",
+        "web_resources/images/arrow.svg",
+        "web_resources/style/*.css"
     ],
     "page_action": {
         "browser_style": true,