refactor rulesets into separate files and add a ruleset compiler cli flag

This commit is contained in:
Kevin Pham
2023-11-15 15:30:23 -06:00
parent 191279c00c
commit 0eef3e5808
16 changed files with 315 additions and 205 deletions

24
rulesets/ch/nzz-ch.yaml Normal file
View File

@@ -0,0 +1,24 @@
- domain: www.nzz.ch
paths:
- /international
- /sport
- /wirtschaft
- /technologie
- /feuilleton
- /zuerich
- /wissenschaft
- /gesellschaft
- /panorama
- /mobilitaet
- /reisen
- /meinung
- /finanze
injections:
- position: head
append: |
<script>
document.addEventListener("DOMContentLoaded", () => {
const paywall = document.querySelector('.dynamic-regwall');
removeDOMElement(paywall)
});
</script>