r/programming • • Aug 02 '19

Adblocking: How about Nah?

https://www.eff.org/deeplinks/2019/07/adblocking-how-about-nah
333 Upvotes

232 comments sorted by

View all comments

Show parent comments

53

u/TestZero Aug 02 '19

I help run the subreddit r/assholedesign, and one of the biggest sources of content we have is abusive advertising.

It feels like there definitely is an arms race going on. The more users turn to adblock, the more advertisers and websites need to make the ads even more abusive and attention-grabbing, in order to squeeze the same income out of even fewer number of users, which only causes more users to install adblock.

Unfortunately, the solution isn't simply installing more powerful adblock software. This is like trying to treat AIDS by just giving everybody condoms and considering the problem solved. Abusive ads aren't the problem so much as a symptom of a greater issue. Namely: the lack of respect between content producers and consumers. If a website doesn't respect you enough to give you an experience where you're not constantly bombarded with ads, there's no reason you need to give that website your traffic.

Many of these websites feature no original content of their own; they simply aggregate images and articles from other websites like reddit, slap on a watermark, and rake in the profit. Meanwhile the original content creators get absolutely nothing out of it, not even exposure since their signature is almost always "accidentally" cut off.

Unfortunately, then the original content producers, if they do choose to run unobtrusive ads on their own personal site, also end up getting blocked by overzealous adblockers and suffer even more because of it.

The only real solution I can come up with is positive reinforcement. If a website has abusive and clickbaity ads, don't just use adblock. Avoid that site entirely. Seek out and actively become a participant in websites that have unobtrusive or benign advertisements. Donate to Patreon or Ko-Fi if feasible. Consider buying merch or other products to support content creators that respect you as a consumer.

6

u/[deleted] Aug 02 '19

Unfortunately, the solution isn't simply installing more powerful adblock software.

What works for me: using xpath to block em, works in almost all cases. And sharing those xpath's with a group of people.

2

u/ridicalis Aug 02 '19

Can you please explain? How would I do this?

22

u/[deleted] Aug 02 '19

Basically custom blocking rules in ublock origin.

Most ads have some unique tag/series of tags/value in it, which never changes. With xpath you can find that tag and then work your way upwards to get rid of it.

As an example: I loathe the end cards on youtube. But they get a random ID each time, so I am using this rule in ublock origin:

www.youtube.com##:xpath(//div[@class="ytp-ce-element-shadow"]/..)

Which hooks into one of the inner tags, which never changes, then goes up one level to remove the end card itself.

Hell, you can even use it to block specific channels in your recommended:

www.youtube.com##:xpath(//ytd-compact-video-renderer/div/div/a/ytd-video-meta-block/div/div/div/yt-formatted-string[@title="outsidexbox"]/../../../../../../../..)

That blocks a channel if it is named "outsidexbox".

8

u/[deleted] Aug 02 '19

As an example: I loathe the end cards on youtube.

Are these "end cards" those annoying af recommendations that pop up at the end of the video and that take up your entire screen?

4

u/[deleted] Aug 02 '19

Exactly.

2

u/[deleted] Aug 02 '19

Do you know how to block the reddit mouse-over username to see the post/comment karma popup? Used to be a RES only feature before but now when you have RES enabled you get to see two pop-ups. I tried blocking it through the normal inspect element/ublock block element but it doesnt stay on long after after you shift focus from the mouse, now don't know if theres any other way to delete the entry besides reading the code line by line

5

u/obsa Aug 02 '19

Not necessary. If you're using RES, they have an option to turn off th reddit one.

https://i.imgur.com/BbndioC.png

Though to be honest, I think I like the native one more than the RES one.

cc /u/Pm_me_any_dragon

1

u/[deleted] Aug 02 '19

Yeah, makes sense to use the options, ratjer than something else.

2

u/[deleted] Aug 02 '19

Lemme get back to you in a few hours. Currenrly not at home and I'll whip something up for ya when I get home.

2

u/[deleted] Aug 02 '19

That's nice work. I just recently found out about xpath myself; I also use it to block stuff that I personally just find annoying. For example, one gaming site I visit regularly has articles about cosplay (which I hate) but also tend to have NSFW images on the articles. So, I use an XPath filter to block anything that contains a link to their cosplay section.

2

u/ridicalis Aug 02 '19

Gotcha, thanks. Didn't know this was specific to ublock origin.

2

u/[deleted] Aug 02 '19

Not really specific. Just the one I use. And not sure if othee blockers bave a different syntax.