4 ms·
Thanks for this! <3 immediately useful contributions. I'm curious, how often do you have to update the selectors? context: I've maintained various website par
by oriel 6y ago
Thanks for this! <3 immediately useful contributions.
I'm curious, how often do you have to update the selectors?
context: I've maintained various website parsers over the years, and it seems to be a constant struggle, depending on the targeted function.
- nexthash 6y agoFortunately, ublock origin does most of the targeting for me, although it focuses on ads not content. I'm pretty sure those people work night and day to keep the filters accurate. As for my filters, I've set them over the last couple years and haven't needed to change them since. Changing them probably corresponds to UI overhauls of the site. If it is too difficult or costly for me to filter, I usually just block the site outright.
- oriel 6y agoI'm the same way with blocking. That's good insight, and mostly aligns with my experience. In the past it was mostly js players and similar api calls via scraping/injection, which are more prone to changing their selectors and interfaces. (for reference, this was as a FOSS maintainer for a project called BeardedSpice which tapped into a bunch of different media sites for background play/pause/next control).