6 ms·
If you zap enough elements on Twitter the scroll bars come back anyway - so !important must be unnecessary for that site. https://nitter.net/about https://nitt
by iicc 4y ago
If you zap enough elements on Twitter the scroll bars come back anyway - so !important must be unnecessary for that site.
https://nitter.net/about https://nitter.net/about offers a better experience IMHO, because it's fast.
Is this what the death of the open web feels like?
- gorhill 4y agoZapper is a special feature, entirely unrelated to cosmetic filtering. When you zap an element, the element is removed from the DOM, and the zapper code will also look at the DOM to find out if any of the parent elements are scroll-locked, and if so will defuse it with an inline style using `!important`.[1] As for cosmetic filtering, it's is the hiding of elements using `display: none !important`, so `!important` is also key to ensure page styles are overridden.[2] --- [1] https://github.com/gorhill/uBlock/blob/12ab8664a30538570d3952e0a61f4b6863d2dc68/src/js/scriptlets/epicker.js#L967 https://github.com/gorhill/uBlock/blob/12ab8664a30538570d395... [2] https://github.com/gorhill/uBlock/blob/12ab8664a30538570d3952e0a61f4b6863d2dc68/src/js/cosmetic-filtering.js#L1079 https://github.com/gorhill/uBlock/blob/12ab8664a30538570d395...