Last active
September 24, 2021 13:13
-
-
Save AlexLynd/63676ffe9b87338f7462fcd9f636551f to your computer and use it in GitHub Desktop.
tampermonkey script to fix scrolling issue when adblock enabled on sparrowslockpicks.com
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Sparrows Scroll Injection | |
// @namespace http://alexlynd.com | |
// @version 1.0 | |
// @description stupid script to fixing scrolling when adblock is enabled on sparrowslockpicks.com | |
// @author Alex Lynd | |
// @match https://www.sparrowslockpicks.com/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
function ScrollInject(css) { | |
var head, style; | |
head = document.getElementsByTagName('head')[0]; | |
if (!head) { return; } | |
style = document.createElement('style'); | |
style.type = 'text/css'; | |
style.innerHTML = ".modal-open {overflow: scroll !important;}"; | |
head.appendChild(style); | |
} | |
ScrollInject(); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment