ryanbr / fanboy-adblock

329 stars 56 forks source link

Blocks StackExchange functions #1540

Open mesvam opened 11 months ago

mesvam commented 11 months ago

List the website(s) you're having issues:

StackExchange sites

What happens?

Vote buttons don't respond, among many other scripted events like profile popdown, etc.

Other details:

This is the filter interfering serverfault.com,superuser.com,stackoverflow.com,askubuntu.com,stackexchange.com##+js(acis, StackExchange.ga.init)

vermgit commented 11 months ago

When will this become available? My µBlock points to this file as the relevant source for the blocking:

[Adblock Plus 2.0]
! Checksum: 1JeRnRcun8N01nsYcbZp3Q
! Title: Fanboy's Enhanced Tracking List
! Updated: 18 Feb 2021
! Expires: 5 days
! License: http://creativecommons.org/licenses/by/3.0/
! Homepage: http://www.fanboy.co.nz/
! Reporting Issues: https://github.com/ryanbr/fanboy-adblock/issues
:
:
serverfault.com,superuser.com,stackoverflow.com,askubuntu.com,stackexchange.com##+js(acis, _comscore)
serverfault.com,superuser.com,stackoverflow.com,askubuntu.com,stackexchange.com##+js(acis, _qevents)
serverfault.com,superuser.com,stackoverflow.com,askubuntu.com,stackexchange.com##+js(acis, GoogleAnalyticsObject)
serverfault.com,superuser.com,stackoverflow.com,askubuntu.com,stackexchange.com##+js(acis, StackExchange.ga.init)
:

And with the above I have the issues described in the issue description.

So I'm not sure how my browser or µBlock gets the fix.

trolzen commented 11 months ago

Does anyone know a workaround for this issue? How to turn off some of that rules without turning off the whole list?

trolzen commented 11 months ago

OK, found the solution. To fix broken SO functionality (up/down votes etc.) one can put the following in their "My filters" list:

! fix for Fanboy's Enhanced Tracking List breaking SO's up/down votes
serverfault.com,superuser.com,stackoverflow.com,askubuntu.com,stackexchange.com#@#+js(acis, StackExchange.ga.init)

⚠️ BEWARE! Judging by the text in the rule this will enable tracking! Maybe it's not what you want.

sugarbleat commented 9 months ago

Same issue here in uBlock Origin.

My understanding (not knowing internals too well) is that the acis scriptlet sets up window.StackExchange to abort on get/set instead of the full window.StackExchange.ga.init. This is because the scriptlet is installed too early, before window.StackExchange is initialized in https://cdn.sstatic.net/Js/stub.en.js.

This means window.StackExchange.ready is also blocked for example.

This comment seems to relate: https://github.com/uBlockOrigin/uBlock-issues/issues/2130#issuecomment-1621810805. If so, it could be a recent regression under uBlock Origin.

Replacing acis with aopr in this one rule seems to fix that.