rules.json 2.34 KB
Newer Older
Kiste's avatar
Kiste committed
1
2
3
4
5
6
7
8
9
10
11
{
  "https://www.golem.de/news/.*": {
    "decompose": [
      "header[class='cluster-header'] > h1",
      "script",
      "style",
      "figure",
      "table",
      "div[id='iqadtile4']",
      "a[class='golem-gallery2-nojs']",
      "ol[class='list-pages']",
Kiste's avatar
Fix    
Kiste committed
12
      "noscript",
Kiste's avatar
Kiste committed
13
14
15
16
17
      "div[class='golem_tablediv']",
      "div[class*='authors']",
      "ul[class*='social-tools']",
      "section[class='supplementary']",
      "div[class='tags']",
Kiste's avatar
Kiste committed
18
19
      "div[class='toc']",
      "iframe"
Kiste's avatar
Kiste committed
20
21
22
23
24
25
26
27
28
29
    ],
    "unwrap": [
      "a[class*='golem-internal-url']",
      "div",
      "header"
    ],
    "comments": "section[id='comments'] > div[class='dh1']",
    "article": "article",
    "next": "a[id='atoc_next']"
  },
Kiste's avatar
Kiste committed
30
  "https://www.heise.de/((newsticker|foto|security|mac-and-i|ix|make)/meldung|meldung|security/artikel)/.*": {
Kiste's avatar
Kiste committed
31
    "article": "div[class='article-content']",
Kiste's avatar
Fix    
Kiste committed
32
    "comments": "footer[class*='beitragsfooter']",
Kiste's avatar
Kiste committed
33
34
    "reformat": [
      {
Kiste's avatar
Better?    
Kiste committed
35
36
        "search": "html?.+=.+",
        "replace": "html?seite=all"
Kiste's avatar
Kiste committed
37
38
39
40
41
42
43
44
45
46
      }
    ],
    "decompose": [
      "figure",
      "style",
      "script",
      "div[class*='gallery']",
      "div[class*='akwa-inline-textbox']",
      "noscript",
      "section[class='widget-werbung']",
Kiste's avatar
Kiste committed
47
      "span[class='bild_zentriert']",
Kiste's avatar
Kiste committed
48
49
50
51
52
53
54
55
      "nav[class='pre-akwa-toc']",
      "nav[class*='seitenweise_navigation']",
      "nav[class='button_zur_startseite']",
      "p[class='beitragsfooter_themen_foren']",
      "div[class*='shariff']",
      "a[class='beitragsfooter_permalink']",
      "nav[class='beitragsfooter-themenseiten']",
      "a[class='beitragsfooter_printversion']",
Kiste's avatar
Kiste committed
56
      "aside[class='beitragsfooter-themenseiten']",
Kiste's avatar
Whoops    
Kiste committed
57
58
      "aside[class='akwa-ad-container']",
      "div[class*='akwa-ad-container']",
Kiste's avatar
Kiste committed
59
      "aside[class='a-pvg']",
Kiste's avatar
Kiste committed
60
61
      "iframe",
      "div[class*='a-inline-textbox']"
Kiste's avatar
Kiste committed
62
63
    ],
    "next": "a[class='seite_weiter']"
Kiste's avatar
Kiste committed
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
  },
  "https://www.heise.de/developer/meldung/.*": {
    "article": "article",
    "comments": "div[class='article-footer__content']",
    "decompose": [
      "figure",
      "div[class='publish-info']",
      "div[class*='bcadv']",
      "script",
      "noscript",
      "aside",
      "div[class*='adbottom']",
      "h2[class='article__heading']",
      "nav[class='article-footer__foren']",
      "div[class='article-footer_shariff']",
Kiste's avatar
Kiste committed
79
80
      "div[class*='akwa-ad-container']",
      "iframe"
Kiste's avatar
Kiste committed
81
    ]
Kiste's avatar
Kiste committed
82
  }
Kiste's avatar
Kiste committed
83
}