Last active
December 29, 2019 07:00
-
-
Save compositor/3fcb23dc76861c3a89b54010f8c6154b to your computer and use it in GitHub Desktop.
Script for tampermonkey. Suppress stupid "Are you a Spokane shopper? If so, please click here." pop-up on fredmeyer.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 NotSpokane | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Remove "Are you a Spokane shopper? If so, please click here." from Fredmeyer website | |
// @author Dmitry Grigorenko [email protected] | |
// @match https://www.fredmeyer.com/* | |
// @grant GM_addStyle | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
GM_addStyle('.page-alerts { display: none !important; }'); | |
setTimeout(()=>{ | |
if (document.getElementsByClassName("page-alerts pin-t sticky")[0].innerText!=="Are you a Spokane shopper? If so, please click here.") { | |
GM_addStyle('.page-alerts { display: block !important; }'); | |
} | |
}, 5000) | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment