olegwukr / polish-privacy-filters

GNU General Public License v3.0
25 stars 5 forks source link

dyrektywy fix #14

Closed KonoromiHimaries closed 5 years ago

KonoromiHimaries commented 5 years ago

directives only work with rules dyrektywy działają tylko na reguły

MajkiIT commented 5 years ago

@KonoromiHimaries co ty chcesz osiągnąć tym ?

KonoromiHimaries commented 5 years ago

@MajkiIT dyrektywy nie działają na inne dyrektywy, sprawdzałem to.

MajkiIT commented 5 years ago

ale w PL jest tak samo https://github.com/MajkiIT/polish-ads-filter/blob/82edcc54fb552a1fe0ca3ad332096943c325b663/polish-adblock-filters/adblock.txt#L27

KonoromiHimaries commented 5 years ago

@MajkiIT to jest źle

2018-12-04-window

KonoromiHimaries commented 5 years ago

dodaj do ublocka i sprawdź czy zanegowanie zadziałało https://raw.githubusercontent.com/KonoromiHimaries/test-repo/master/test.txt

MajkiIT commented 5 years ago

@KonoromiHimaries

!#if !ext_ublock
!#include test-inc.txt
!#endif

! >>>>>>>> https://raw.githubusercontent.com/KonoromiHimaries/test-repo/master/test-inc.txt
test
test
test
! <<<<<<<< https://raw.githubusercontent.com/KonoromiHimaries/test-repo/master/test-inc.txt
KonoromiHimaries commented 5 years ago

no właśnie, zanegowanie by nie działało w ublock nie działa https://github.com/gorhill/uBlock/wiki/Static-filter-syntax#if-condition

MajkiIT commented 5 years ago

Tip: since ext_ublock is always true in uBO, you can use a !#if directive to disable a large block of your filters without having to remove them:

MajkiIT commented 5 years ago

@KonoromiHimaries to ma wpadać tylko w uBO wiec ... jest OK

KonoromiHimaries commented 5 years ago

@MajkiIT wstawiałem testową regułkę i ukrywa mimo że jest negacja by nie działało tylko na ubo

KonoromiHimaries commented 5 years ago

naprawione https://github.com/gorhill/uBlock/commit/0d6a18207aaea3f995acb5f8d02dcd1dfba044fd