Scroll Bar Enabler

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

< 腳本Scroll Bar Enabler的回應

提問/評論

§
發表於:2021-04-19

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.

§
發表於:2021-07-06
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; }";

發表回覆

登入以回復