Skip to content

Instantly share code, notes, and snippets.

@shakaran
Last active August 29, 2021 18:25
Show Gist options
  • Save shakaran/2ad17bc30589e259fc58a870acd987e6 to your computer and use it in GitHub Desktop.
Save shakaran/2ad17bc30589e259fc58a870acd987e6 to your computer and use it in GitHub Desktop.
Remove body overflow hidden from investing website
// ==UserScript==
// @name InvestingRemoveScrollBodyBlocker
// @namespace http://tampermonkey.net/
// @version 0.2
// @description Remove body overflow hidden
// @author Ángel Guzmán Maeso <[email protected]>
// @match https://*.investing.com/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
// Download the tampermonkey chrome extension and load this simple script + adblock rule to block popups
// Credits: https://stackoverflow.com/questions/51330252/how-to-remove-the-css-rule-body-overflowhidden-automatically
document.body.style.cssText = "visible !important";
})();
@brgaulin
Copy link

I think there is a typo on line 15. It is missing the property key name

document.body.style.cssText = "overflow: visible !important";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment