Skip to content

Instantly share code, notes, and snippets.

@archy-bold
Created May 29, 2024 11:19
Show Gist options
  • Save archy-bold/35abeb114094c0c42e60ac235f3baec3 to your computer and use it in GitHub Desktop.
Save archy-bold/35abeb114094c0c42e60ac235f3baec3 to your computer and use it in GitHub Desktop.
iOS Shortcut to remove modal from NYT Wordlebot
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