Closed ikreymer closed 3 months ago
Supports filtering of Adblock Plus css hiding rules and serving css to hide the specified selectors.
<domain>##<css selector>
adblockUrl
/mp_/adblock:<domain>
/mp_/adblock:
##<css selector>
Testing:
yarn run build
yarn run start-live-proxy
http://localhost:10001/#https://www.cnn.com/
http://localhost:10001/index-adblock.html#https://www.cnn.com/
Supports filtering of Adblock Plus css hiding rules and serving css to hide the specified selectors.
<domain>##<css selector>
rules, a subset of adblock plus formatted filters.adblockUrl
specifies the text file/mp_/adblock:<domain>
will return css rules for that domain, `/mp_/adblock:
returns all-domain rules, eg.##<css selector>
Testing:
yarn run build
, thenyarn run start-live-proxy
. This starts a web server on 10001http://localhost:10001/#https://www.cnn.com/
, confirm ads are shown.http://localhost:10001/index-adblock.html#https://www.cnn.com/
, confirm adds are not shown.