Created
May 29, 2024 11:19
-
-
Save archy-bold/35abeb114094c0c42e60ac235f3baec3 to your computer and use it in GitHub Desktop.
iOS Shortcut to remove modal from NYT Wordlebot
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
var result = "" | |
// Hide the modal | |
document.getElementById("standalone-footer").setAttribute("style", "display: none !important"); | |
// Ensure the content doesn't have extra CSS | |
var content = document.getElementById("site-content"); | |
content.style.removeProperty("position"); | |
content.style.removeProperty("width"); | |
content.style.removeProperty("margin-top"); | |
// Recreate the body to remove any touchmove events on body | |
var els = []; | |
document.body.childNodes.forEach((el) => els.push(el)); | |
document.body.innerHTML = ""; | |
document.body.outerHTML = document.body.outerHTML; | |
els.forEach((el) => document.body.appendChild(el)); | |
completion(result); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment