Some sites (notably twitter) like to set overflow:hidden, typically on either body or html, particularly when they pop up a modal window. With a chrome extension, I've set it to scroll as !important, but ... after a delay, it changes. Is there a way (short of turning off javascript entirely) to keep the overflow attribute where I set it?
You should share your code - however I think the best way to do this would be to listen to changes to the DOM (in the content script of your extension) and re-set the overflow to auto/scroll. You can use MutationObserver:
let observer = new MutationObserver(mutations => {
// Code here
});
observer.observe(document, { childList: true, subtree: true });