There's also the possibility of using Advanced Charging Controller - though it requires root.
Essentially you can set it up so when the battery reaches eg. 100% it stops charging, and resumes only once it reaches eg. 15%. Surprisingly the Android devices that I have still don't ever stop charging on their own, constantly keeping 100%.
There is also a cool site that aggregates custom lists and allows you to search for specific filter-lists and narrow down choices by using filters on top. You can then subscribe to them directly - most are hosted on github. Just keep in mind some of them haven't been updated in years - you can preview them, and check their last update - in most of cases anyway.
https://filterlists.com/
BTW there are filters specifically designed to remove newsletter-signup messages, popups, popunders, as well as general "annoyances" :)
[Advanced Charging Controller (ACC)](https://github.com/VR-25/acc)
[BU-808: How to Prolong Lithium-based Batteries](https://batteryuniversity.com/article/bu-808-how-to-prolong-...)