Last active
December 9, 2020 11:19
-
-
Save g-rohit/9247e6ad66853f3e0780e25fd7596d52 to your computer and use it in GitHub Desktop.
remove-hindustantimes-ad-block-pop-up
This file contains 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 HT-times-@grohit; | |
// @version 1.00 | |
// @Date 9th-dec-2020 | |
// @author github.com/g-rohit | |
// ==/UserScript== | |
// Desc: Remove ad blocker pop up | |
setInterval(function () { | |
if (window.location.href.includes("hindustantimes")) { | |
console.log('hindustantimes website found'); | |
if(document.querySelector('.modal-backdrop')) | |
{document.querySelector('.modal-backdrop').classList.remove('modal-backdrop'); | |
console.log('removed backdrop'); | |
} | |
document.body.parentElement.classList.remove('scrolloff'); | |
console.log('removed scroll off class'); | |
}}, 1000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment