3 ms·
From my reading of https://www.ampproject.org/docs/fundamentals/spec https://www.ampproject.org/docs/fundamentals/spec, it looks like you could override this be
by EvilTerran 8y ago
From my reading of https://www.ampproject.org/docs/fundamentals/spec https://www.ampproject.org/docs/fundamentals/spec, it looks like you could override this behaviour in uBlock Origin with a style cosmetic filter. Something like...
##html[amp] body,html[\26A1] body:style(animation:none!important)
(I can't test it in my current browser, unfortunately, but I think that's right.)
[edit]
Update: I got to a browser I could test it on. Unfortunately, it turns out uBO doesn't let you apply :style() rules to all pages indiscriminately, you have to specify a domain name pattern - which is pretty annoying, because the principle is evidently sound; this does work on the link in OP:
ehow.co.uk##html[amp] body,html[\26A1] body:style(animation:none!important)
Hrmph.
Alternatively, you could use a CSS injection addon (or userContent.css, in Firefox) to add the rule to all pages:
html[amp] body, html[\26A1] body {
animation: none !important;
}
Or do it with a userscript (ie via Greasemonkey or similar).
[edit 2]
It appears uBO is aware of a need for something like this - they provide an injectable "scriptlet" that adds the necessary CSS: https://github.com/gorhill/uBlock/wiki/Resources-Library#ampprojectorgv0js- https://github.com/gorhill/uBlock/wiki/Resources-Library#amp...
Unfortunately, scriptlet injection also can't be applied to every page indiscriminately. :/
! works on OP's link
ehow.co.uk##script:inject(ampproject.org/v0.js)
! doesn't work at all
##script:inject(ampproject.org/v0.js)
So I'm just mentioning it here for completeness' sake.
- fixermark 8y agoAnd if uBlock needs to be modified to make your Amp-adjacent experience better, it's probably a bug uBlock's team should be notified about.
- cramforce 8y agoHas it been figured out which adblock list accidentally blocked AMP? We'd like to contact them. This is clearly a bug, since blocking AMP is not related to blocking ads (all the normal ad blocking rules should do the job just fine).
- gtf21 8y agoµMatrix blocks everything that's not from the primary domain unless I tell it otherwise, which is sometimes annoying, but on the other hand lets me cut out loads of crap (hello AMP-project).