Skip to content

Instantly share code, notes, and snippets.

@MarkZhangTW
Last active June 13, 2020 04:29
Show Gist options
  • Save MarkZhangTW/8f5ebfecaae5671db8522a9e3cb99032 to your computer and use it in GitHub Desktop.
Save MarkZhangTW/8f5ebfecaae5671db8522a9e3cb99032 to your computer and use it in GitHub Desktop.
移除 Instagram 圖片前面的髒東西。Remove IG's image mask.
setInterval(() => document.querySelectorAll("._4rbun ~ div").forEach(tag => tag.style.display = "none"), 999)
@MarkZhangTW
Copy link
Author

div = document.querySelector('div._9AhH0,div.fXIG0');
a = document.createElement('a');
a.classList.add(div.className);
a.href = div.parentElement.children[0].children[0].src;
a.setAttribute('target', '_blank');
div.parentElement.replaceChild(a, div);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment