Last active
April 4, 2021 18:21
-
-
Save obfusk/dba6447e4e28277c2791d86463283385 to your computer and use it in GitHub Desktop.
<img> w/ data-src -> src
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
[...document.getElementsByTagName("img")].forEach(x => { if (x.dataset.src) x.src = x.dataset.src }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment