Skip to content
This repository was archived by the owner on Feb 1, 2024. It is now read-only.

Commit 8879d3e

Browse files
author
AndriusA
committed
updates theguardian.com content selectors
1 parent 84e66f5 commit 8879d3e

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

data/SpeedReaderConfig.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,14 +321,17 @@
321321
".atom__button",
322322
"input",
323323
".meta__extras",
324+
".meta__contact-method",
324325
".content__headline-showcase-wrapper",
325326
".fc-container__header",
326327
"figure.element-embed",
327-
".vjs-control-text"
328+
".vjs-control-text",
329+
"aside > span",
330+
".submeta__share"
328331
],
329332
"delazify": true,
330333
"fix_embeds": true,
331-
"content_script": "<script>\n [...document.querySelectorAll(\"[data-src-background]\")]\n .map(d => d.src = d.dataset[\"src-background\"].replace(\"background-image: url\", \"\").replace(/[\\(\\)]/g, \"\"))\n </script>",
334+
"content_script": "<script>\n [...document.querySelectorAll(\"[data-src-background]\")]\n .map(d => d.src = d.dataset[\"srcBackground\"].replace(\"background-image: url\", \"\").replace(/[\\(\\)]/g, \"\"))\n </script><style>blockquote { font-size: 1.2em; line-height: 1.5em } #article aside { float: left; margin: 1em; max-width: 40% } aside::before { content: '“'; display: block; height: .25em; font-size: 4em } figcaption svg {display: inline-block; margin-right: .25em } [data-component=series], [data-component=section] { display: inline-block; margin-right: 1em } li:empty { display: none }</style>",
332335
"preprocess": [
333336
{
334337
"selector": ".vjs-big-play-button[style]",
@@ -337,6 +340,10 @@
337340
"data-src-background"
338341
],
339342
"element_name": "img"
343+
},
344+
{
345+
"selector": "a.js-gallerythumbs",
346+
"element_name": "div"
340347
}
341348
]
342349
}

0 commit comments

Comments
 (0)