Created
April 26, 2019 00:07
-
-
Save mcprat/5360887698db95a47ea5e66d0f238176 to your computer and use it in GitHub Desktop.
Genius.com remove Apple Music Player user.js userscript for Tampermonkey
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 Destroy Genius.com Apple Music Player | |
// @namespace http://tampermonkey.net/ | |
// @version 1.0 | |
// @description When browsing on Genius.com, remove the pesky Apple Music Player | |
// @author Michael Pratt <[email protected]> | |
// @include http*://*genius.com* | |
// ==/UserScript== | |
// Sources used: https://stackoverflow.com/questions/4777077/removing-elements-by-class-name | https://hibbard.eu/tampermonkey-tutorial/ | |
(function() { | |
'use strict'; | |
var elements = document.getElementsByClassName("apple_music_player_iframe_wrapper"); | |
while(elements.length > 0){ | |
elements[0].parentNode.removeChild(elements[0]); | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment