Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Work around over-eager adblockers hiding stuff they shouldn't hide #263

Merged
merged 1 commit into from
May 21, 2020

Conversation

DasSkelett
Copy link
Member

@DasSkelett DasSkelett commented May 21, 2020

Problem

A forum user reported problems seeing the follow button on the mod page.
In a PM they said they are using Adblock Plus on Firefox.
Downloading the extension and activating the Block social media icons tracking option confirmed the problem:
Missing follow button
ABP debug reporting the removal of the button

ABP uses a list called "Fanboy's Social Blocking List" if the Block social media icons tracking is activated. That one includes filters that probably cause a lot of false positives, and in our case it's ##.follow-button that triggers.

Changes

Rename the .follow-button class to .follow-mod-button (and .unfollow-button to .unfollow-mod-button to stay consistent).
Local testing shows that it brings the follow button back.

VITAS mentioned there were also reports of the download button missing, but I can't reproduce that one. We'll have to wait for further reports for that.

Renames the .follow-button class to .follow-mod-button (and .unfollow-button to .unfollow-mod-button to stay consistent).
Several times users reported missing download or follow buttons.
While I can't confirm it for the download button, I can reproduce it for the follow button thanks to a user reporting it together with the ad-blocker they are using.

It seems to be the "Block Tracking through Social-Media-Symbols" option in Adblock Plus.
It is based on the "Fanboy's Social Blocking List", which includes the filter ##.follow-button .

Renaming the class to .follow-mod-button resolves the problem.
@DasSkelett DasSkelett added Type: Improvement Priority: Normal Status: Ready Area: Frontend Related to HTML, JS, CSS, or other browser things labels May 21, 2020
@Xinayder Xinayder requested a review from HebaruSan May 21, 2020 21:00
@DasSkelett DasSkelett merged commit 67262ca into KSP-SpaceDock:alpha May 21, 2020
@DasSkelett DasSkelett deleted the fix/bad-adblockers branch May 21, 2020 21:25
@HebaruSan HebaruSan mentioned this pull request Jun 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Frontend Related to HTML, JS, CSS, or other browser things Priority: Normal Status: Ready Type: Improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants