Skip to content

Commit

Permalink
Check privoxy runtime logs (#48)
Browse files Browse the repository at this point in the history
* improve output & add check for runtime logs
* privoxy-blocklist: remove unnessary newline
* privoxy-blocklist: improve debug() function
* tests: add check for errors in privoxy runtime log
* improve readability of sed-commands
* implement content tests & move to setup.cfg
* tests: implement logix to check for content removed by privoxy
* tests: centralize test configuration in config.py
* tests: move config for python linting tools to centralized setup.cfg
* add vim & curl for debugging in Docker container
* optimize id & class matching rules
* move testwebserver to conftest.py
* add attribute-name-only handler & fix left-over handling
* add attribute matches for exact, startswith & endswith
* implement flag for content filter activation
* update implementation status in README
* update test configurations

---------

Signed-off-by: Andrwe Lord Weber <[email protected]>
  • Loading branch information
Andrwe authored Jan 28, 2024
1 parent bafe92d commit 9412956
Show file tree
Hide file tree
Showing 15 changed files with 782 additions and 176 deletions.
7 changes: 7 additions & 0 deletions .ci_config/prospector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,10 @@ bandit:

mypy:
run: true

pydocstyle:
disable:
# conflicts with D211
- D203
# conflicts with D211
- D212
2 changes: 0 additions & 2 deletions .flake8

This file was deleted.

6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ repos:
rev: v3.7.0.1
hooks:
- id: shfmt
args:
- "--binary-next-line"
- "--case-indent"
- "--indent"
- "4"
- "--space-redirects"
- repo: https://github.com/AleksaC/hadolint-py
rev: v2.12.0.3
hooks:
Expand Down
21 changes: 16 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,29 @@ The following table shows features of AdBlock Plus filters and there status with

| Feature | Type | Status | Test |
| ------- | ---- | ------ | ---- |
| `#$#` | CSS selector - Snippet filter | :question: | :question: |
| `:-abp-contains()` | extended CSS selector | :question: | :question: |
| `:-abp-has()` | extended CSS selector | :question: | :question: |
| `:-abp-properties()` | extended CSS selector | :question: | :question: |
| `\|\|…` | block domain matching excluding scheme | :white_check_mark: | :white_check_mark: |
| `\|…\|` | block exact domain matching including scheme | :question: | :question: |
| `!…` | comments | :white_check_mark: | |
| `csp=` | filter options | :question: | :question: |
| `##…[…]` | CSS attribute selector | :question: | :question: |
| `##` | CSS selector - Element hiding | :white_check_mark: | |
| `#?#` | CSS selector - Element hiding emulation | :question: | :question: |
| `#@#` | CSS selector - Element hiding exception | :question: | :question: |
| `##.class` | global CSS attribute selector with matching for class | :white_check_mark: | :white_check_mark: |
| `###id` | global CSS attribute selector with matching for id | :white_check_mark: | :white_check_mark: |
| `##[attribute]` | global CSS attribute selector with matching for attribute-name | :white_check_mark: | :white_check_mark: |
| `##[attribute=value]` | global CSS attribute selector with matching for attribute-value pair | :white_check_mark: | :white_check_mark: |
| `##[attribute^=value]` | global CSS attribute selector with matching for attribute with value starting with | :white_check_mark: | :white_check_mark: |
| `##[attribute$=value]` | global CSS attribute selector with matching for attribute with value ending with | :white_check_mark: | :white_check_mark: |
| `##[attribute*=value]` | global CSS attribute selector with matching for attribute with value containing | :white_check_mark: | :white_check_mark: |
| `##html-tag[attribute]` | global CSS attribute selector for html-tag with matching for attribute-name | :construction: | :construction: |
| `##html-tag[attribute=value]` | global CSS attribute selector for html-tag with matching for attribute-value pair | :construction: | :construction: |
| `##html-tag[attribute^=value]` | global CSS attribute selector for html-tag with matching for attribute with value starting with | :construction: | :construction: |
| `##html-tag[attribute$=value]` | global CSS attribute selector for html-tag with matching for attribute with value ending with | :construction: | :construction: |
| `##html-tag[attribute*=value]` | global CSS attribute selector for html-tag with matching for attribute with value containing | :construction: | :construction: |
| `[…]#$#` | domain based CSS selector - Snippet filter | :question: | :question: |
| `[…]##` | domain based CSS selector - Element hiding | :white_check_mark: | |
| `[…]#?#` | domain based CSS selector - Element hiding emulation | :question: | :question: |
| `[…]#@#` | domain based CSS selector - Element hiding exception | :question: | :question: |
| `document` | filter options | :question: | :question: |
| `~domain=` | filter options | :question: | :question: |
| `domain=` | filter options | :question: | :question: |
Expand Down
Loading

0 comments on commit 9412956

Please sign in to comment.