I'm searching a way on how to change behavior of some website in mobile browser.
For example:
- Remove annoing Ad (specific one)
- Change some elements on a website, to make it easier to read on small screen (change some css)
- Make site measure how much time I've spent on it, and "block" me from using it more time per day than I've configured.
On desktop browser I'm usually solving this tasks by using extensions like TamperMonkey/GreasyMonkey (which allows me to add custom JavaScript code to page and do what I want on the page), StayFocusd (to limit distractions) and so on.
But most of mobile browsers doesn't have extensions (and it's understandable because they often writen poorly and could eat too much CPU on not-so-powerfull device).
To be honest, Firefox for Android has addons but there are very few. Just adblocking, privacy and some bugfixing extensions. No TamperMonkey/GreasyMonkey analog.
Also, I know, that UCBrowser has it's extension store, but my Chineese is bad, and the store is all on Chinesse :)
I came to the folowing idea:
Setup my own DNS server and configure my Android to use it (now it's possible without root)
Setup my own squid proxy server
Create self-signed SSL-certificate and add it to my Android's certificates storage.
For sites where I want to make some augmentations, my DNS should give IP-address of my squid-proxy (which is using my self-signed cert or generating cerificated for needed sites, signed by my self-created authority certificate)
The proxy should be loading the real site, and patch it's html files, adding my JavaScript file into it.
So I would be able to change parts of the sites, removing ads, measure time spend and so on. Everything is possible!
I have knowledge and skills to make all of the described steps (or it seems so), BUT! I don't have enough free time.
I want to know, maybe there are something like this implemented in a single service?
Or maybe you could direct me to some easier solution of the problem?