Created
March 29, 2021 22:24
-
-
Save marlonwanger/ad3a7a141e8cefe4e12ca92a834fe4ef to your computer and use it in GitHub Desktop.
Parte2
This file contains 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
new MutationObserver((mutations) => { | |
mutations.some((mutation) => { | |
if (mutation.type === 'attributes' && mutation.attributeName === 'src') { | |
iframe.parentElement.style.display = 'none'; | |
image.parentElement.style.display = 'block'; | |
return true; | |
} | |
return false; | |
}); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment