alandau / sweb

Android Simple Web Browser
39 stars 22 forks source link

Custom filter #14

Open PowerExplorer opened 3 years ago

PowerExplorer commented 3 years ago

If possible, please support custom filter that block/unblock url patterns, custom ads block

alandau commented 3 years ago

It's already supported, but is not exposed in the GUI. You can drop any file with .txt extension into /storage/emulated/0/Android/data/landau.sweb/files/adblock in the Adblock Plus / uBlock Origin file format (see https://adblockplus.org/filter-cheatsheet), restart SWeb, and they will be used. If you downloaded the Easylist rules from within SWeb, you'll see them in that folder and can use as a reference.

Adding a UI for this is not something I was planning on doing any time soon, but will accept a pull request.