This repository provides User Scripts for Bromite and Cromite, which are browsers for Android. These scripts might also work on other mobile or desktop browsers.
Bromite has a built-in ad blocker (also see my Bromite ad blocking project), but some sites are very good at bypassing it. We can improve blocking on these sites using scripts. Cromite already has a good built-in Ad Blocker.
You can get an overview and download links on the website.
Acknowledgement: The filter lists for the cosmetic filter script are sourced from collinbarrett's FilterLists project (see filterlists.com). Thanks to everyone that contributes! :)
Deprecated
Make sure you have a recent version of Bromite installed. Then you can follow these steps:
You might need to go to settings (via the three dots at the top right), then "User Scripts" to enable the "Activate User Scripts" option first.
If the browser doesn't prompt you to install the script, you can also just go to the User Script settings and add the file manually.
Some scripts are auto-generated (because they need to be regenerated from time to time to include up to date sources). The source code for the generators is in subdirectories of the generate
directory.
You can see statistics (e.g. number of included rules) in the latest release.
You can also create your own scripts, see the official documentation on how to do that. You should read the Chromium User Script Design Document to learn about existing pitfalls.
I recommend trying out remote debugging via a desktop browser if your script doesn't behave as expected.
If you want to remove certain elements on dynamic pages (like Twitter), I recommend this snippet of code, it's very helpful.
If you have any issues with these scripts (e.g. some ads aren't blocked for an ad blocking script), please feel free to open an issue. Also if you want to add something, feel free to do that :)
All scripts unless otherwise noted are published under the MIT License (see the LICENSE file). Some scripts might be licensed differently (e.g. because they are derived from GPL-licensed works), which is indicated by the license header at the top of the file