Skip to content

Instantly share code, notes, and snippets.

@jrw254
Created August 8, 2020 18:28
Show Gist options
  • Select an option

  • Save jrw254/ca8428cb893891fffe89fb92da98e953 to your computer and use it in GitHub Desktop.

Select an option

Save jrw254/ca8428cb893891fffe89fb92da98e953 to your computer and use it in GitHub Desktop.
Hide the ads on the Moon Faucets except the roll up iframe. I may or may not fix that later. Excludes Bonus Bit Coin for now.
// ==UserScript==
// @name Hide The Moon
// @namespace http://tampermonkey.net/
// @version 1.0.1
// @description Hide the ads on the Moon Faucets
// @author JRW254/Sabedth
// @match http://moonbitcoin.cash/faucet
// @match https://moonliteco.in/faucet
// @match http://moondoge.co.in/faucet
// @match http://moonbit.co.in/faucet
// @match http://moondash.co.in/faucet
// @grant none
// ==/UserScript==
fbhide(document.querySelectorAll('.flexBefore'));
function fbhide (elements) {
elements = elements.length ? elements : [elements];
for (var index = 0; index < elements.length; index++) {
elements[index].style.display = 'none';
}
}
fahide(document.querySelectorAll('.flexAfter'));
function fahide (elements) {
elements = elements.length ? elements : [elements];
for (var index = 0; index < elements.length; index++) {
elements[index].style.display = 'none';
}
}
fchide(document.querySelectorAll('.flexContentAd'));
function fchide (elements) {
elements = elements.length ? elements : [elements];
for (var index = 0; index < elements.length; index++) {
elements[index].style.display = 'none';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment