Created
February 4, 2023 00:57
-
-
Save rileyrichter/260aaee02e0e63d1260ad83f515afc16 to your computer and use it in GitHub Desktop.
YouTube facade with jQuery
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
const facade = document.querySelector(".facade-wrapper"); | |
window.onload = (event) => { | |
facade.addEventListener("mouseover", replaceFacade); | |
}; | |
function replaceFacade() { | |
$(".facade-wrapper").remove(); | |
$(".yt-facade").load("/hidden-page#vid"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment