update README
This commit is contained in:
@@ -154,8 +154,8 @@ See in [ruleset.yaml](ruleset.yaml) for an example.
|
|||||||
<h1>My Custom Title</h1>
|
<h1>My Custom Title</h1>
|
||||||
- position: .left-content article # Position where to inject the code into DOM
|
- position: .left-content article # Position where to inject the code into DOM
|
||||||
prepend: |
|
prepend: |
|
||||||
<h2>Suptitle</h2>
|
<h2>Subtitle</h2>
|
||||||
- domain: tagesspiegel.de
|
- domain: demo.com
|
||||||
headers:
|
headers:
|
||||||
content-security-policy: script-src 'self';
|
content-security-policy: script-src 'self';
|
||||||
user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36
|
user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36
|
||||||
@@ -165,8 +165,8 @@ See in [ruleset.yaml](ruleset.yaml) for an example.
|
|||||||
value: 1
|
value: 1
|
||||||
domain:
|
domain:
|
||||||
- match: www # regex to match part of domain
|
- match: www # regex to match part of domain
|
||||||
replace: amp # (this would modify the domain from www.tagesspiegel.de to amp.tagesspielgel.de)
|
replace: amp # (this would modify the domain from www.demo.de to amp.demo.de)
|
||||||
path:
|
path:
|
||||||
- match: ^ # regex to match part of path
|
- match: ^ # regex to match part of path
|
||||||
replace: /amp/ # (modify the url from https://www.tagesspiegel.de/internationales/ to https://www.tagesspiegel.de/amp/internationales/)
|
replace: /amp/ # (modify the url from https://www.demo.com/article/ to https://www.demo.de/amp/article/)
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user