Last active
June 13, 2020 04:29
-
-
Save MarkZhangTW/8f5ebfecaae5671db8522a9e3cb99032 to your computer and use it in GitHub Desktop.
移除 Instagram 圖片前面的髒東西。Remove IG's image mask.
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
setInterval(() => document.querySelectorAll("._4rbun ~ div").forEach(tag => tag.style.display = "none"), 999) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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);