Skip to content

Instantly share code, notes, and snippets.

@shadowfacts
Last active July 7, 2018 15:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shadowfacts/5350e6931ee017dc4e523ef0fcd3053f to your computer and use it in GitHub Desktop.
Save shadowfacts/5350e6931ee017dc4e523ef0fcd3053f to your computer and use it in GitHub Desktop.
// Normal position: fixed;
const elems = document.getElementsByTagName("*");
for (let i = 0; i < elems.length; i++) {
const el = elems[i];
const position = window.getComputedStyle(el).getPropertyValue("position");
if (position == "fixed") {
el.remove();
}
}
// Medium "Open in App"
document.querySelector(".postActionsBar").remove();
completion();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment