Skip to content

Instantly share code, notes, and snippets.

@g-rohit
Last active December 9, 2020 11:19
Show Gist options
  • Save g-rohit/9247e6ad66853f3e0780e25fd7596d52 to your computer and use it in GitHub Desktop.
Save g-rohit/9247e6ad66853f3e0780e25fd7596d52 to your computer and use it in GitHub Desktop.
remove-hindustantimes-ad-block-pop-up
// ==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