4 ms·
After blocking popups on some sites, the scrollbar is dtill hidden, making it impossible to scroll (like on twitter, for example). With the help of !important,
by pajko 5y ago
After blocking popups on some sites, the scrollbar is dtill hidden, making it impossible to scroll (like on twitter, for example). With the help of !important, the scroll bar can be forcibly turned on by adding uBlock cosmetic filters. Works on per-site basis, but can be added globally, though some sites break a bit, like the top header on Wikipedia starts behaving strangely.
https://www.reddit.com/r/uBlockOrigin/comments/ce4mok/how_to_reenable_scrolling_after_blocking_element/ https://www.reddit.com/r/uBlockOrigin/comments/ce4mok/how_to...
- iicc 5y agoIf 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 5y 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...