Created
August 8, 2020 18:28
-
-
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.
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 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