- clone the repo to your machine with
git clone https://github.com/dhowe/AdLiPo.git
- clone uAssets into the same parent folder with
git clone https://github.com/uBlockOrigin/uAssets.git
- then enter the AdLiPo folder (
cd AdLiPo
)
- run
tools/make-firefox.sh
(orsh tools/make-firefox.sh -all
) - then, in Firefox open about:debugging from the location bar
- click 'This Firefox' on the top-left, then click 'Load Temporary Add-on...'
- in the dialog that appears, navigate to
dist/build/AdLiPo.firefox/
and select the manifest.json file - AdLiPo should now be loaded in Firefox (check for the icon in the toolbar)
- run
tools/make-chromium.sh
(orsh tools/make-chromium.sh
) - then, in the browser open chrome://extensions from the location bar
- click 'Load unpacked' on the top-left
- in the dialog that appears, navigate to
dist/build/
and select theAdLiPo.chromium
folder - AdLiPo should now be loaded in the browser (check for the icon in the toolbar)
After loading the extension:
- Visit
test/test.html
and make sure all divs on the page are hidden, then disable the extension and re-enable it, then make sure each rectangle is the same size as the original div. - Visit https://rednoise.org/adntest/simple.html and do the same check.
- Visit https://hk.yahoo.com and verify that all ads are either hidden or replaced with rectangles. Disable the extension and enable it again, then make sure that more at least 75% of the ads are replaced. Pay attention to ads inserted in the news lists (when testing this from Asia, make sure the filter list
AdGuard Chinese
is enabled).