Last active
May 19, 2025 14:11
-
-
Save D1360-64RC14/b5e5c4bbc5e3b123e35547a1dbcc927a to your computer and use it in GitHub Desktop.
if, for some reason, all images in the Discord Support Forum doesn't load, you can try executing this script in the console. There's a chance of it not working -- because technologies update every time --, but you can give it a try. Have a good day!
This file contains hidden or 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
function easyCreateElement(name, attrs = {}) { | |
const el = document.createElement(name); | |
for (const [k, v] of Object.entries(attrs)) { | |
el.setAttribute(k, v instanceof Element ? v.getAttribute(k) : k); | |
} | |
return el; | |
} | |
document.querySelectorAll('img[data-src]') | |
.forEach(function (el) { | |
const newOne = easyCreateElement("img", { | |
"class": el, | |
"alt": el, | |
"src": el.dataset.src | |
}); | |
el.replaceWith(newOne); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment