From f6ed225bad445723a724e38a2d93fb5c822ed5df Mon Sep 17 00:00:00 2001 From: Sampson Date: Sun, 9 Aug 2020 18:07:47 -0500 Subject: [PATCH 1/2] Updates selectors to match changes to site --- data/SpeedReaderConfig.json | 36 ++++++++++++++---------------------- 1 file changed, 14 insertions(+), 22 deletions(-) diff --git a/data/SpeedReaderConfig.json b/data/SpeedReaderConfig.json index 6e90283..4bb10cf 100644 --- a/data/SpeedReaderConfig.json +++ b/data/SpeedReaderConfig.json @@ -312,33 +312,25 @@ ], "declarative_rewrite": { "main_content": [ - "article header", - ".content__article-body" + "a[data-component=series]", + "a[data-component=section]", + "[data-component=meta-byline]", + "div[role=textbox]", + "h1", + "a[rel=author]", + "picture", + "#the-caption figcaption", + "main .article-body-commercial-selector", + "aside", + "p" ], "main_content_cleanup": [ - ".hide-on-mobile", - ".inline-icon", - ".atom__button", - "input", - ".meta__extras", - ".content__headline-showcase-wrapper", - ".fc-container__header", - "figure.element-embed", - ".vjs-control-text" + "aside > span" ], "delazify": true, "fix_embeds": true, - "content_script": "", - "preprocess": [ - { - "selector": ".vjs-big-play-button[style]", - "attribute": [ - "style", - "data-src-background" - ], - "element_name": "img" - } - ] + "content_script": "", + "preprocess": [] } }, { From dddc132ea600b954be1575e50658fec906f73aaf Mon Sep 17 00:00:00 2001 From: Sampson Date: Tue, 11 Aug 2020 01:54:12 -0500 Subject: [PATCH 2/2] Removes blockquote styling --- data/SpeedReaderConfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/SpeedReaderConfig.json b/data/SpeedReaderConfig.json index 6827c0c..070062c 100644 --- a/data/SpeedReaderConfig.json +++ b/data/SpeedReaderConfig.json @@ -350,7 +350,7 @@ ], "delazify": true, "fix_embeds": true, - "content_script": "", + "content_script": "", "preprocess": [] } },