Scroll Bar Enabler

Re-enables the scroll bar for sites that use anti-adblock scripts.

< Feedback on Scroll Bar Enabler

Question/comment

§
Posted: 19.04.2021

I recommend updating your enableScrolling() function with the following:

var r="html,body{overflow:auto !important;}";
var s=document.createElement("style"); s.type="text/css";
s.appendChild(document.createTextNode(r));
document.body.appendChild(s);
void 0;


Since some scripts are adding overflow:hidden on the html tag. The delay shouldn't be necessary but it doesn't exactly hurt either.

§
Posted: 06.07.2021
I recommend updating your enableScrolling() function with the following:

var r="html,body{overflow:auto !important;}";
var s=document.createElement("style"); s.type="text/css";
s.appendChild(document.createTextNode(r));
document.body.appendChild(s);
void 0;


Since some scripts are adding overflow:hidden on the html tag. The delay shouldn't be necessary but it doesn't exactly hurt either.

In line with this reply, the first section should add position: static (which is the default css when position isn't specified). The reason is that I saw some sites used position: fixed, which stops the page from moving as well.

var r="html,body{overflow:auto !important; position: static !important; }";

Post reply

Sign in to post a reply.

长期地址
遇到问题?请前往 GitHub 提 Issues,或加Q群1031348184

赞助商

Fishcpy

广告

Rainyun

一年攒够 12 元

云驰互联

云驰互联