Skip to content

Instantly share code, notes, and snippets.

@AlexLynd
Last active September 24, 2021 13:13
Show Gist options
  • Save AlexLynd/63676ffe9b87338f7462fcd9f636551f to your computer and use it in GitHub Desktop.
Save AlexLynd/63676ffe9b87338f7462fcd9f636551f to your computer and use it in GitHub Desktop.
tampermonkey script to fix scrolling issue when adblock enabled on sparrowslockpicks.com
// ==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