Skip to content

Instantly share code, notes, and snippets.

@D1360-64RC14
Last active May 19, 2025 14:11
Show Gist options
  • Save D1360-64RC14/b5e5c4bbc5e3b123e35547a1dbcc927a to your computer and use it in GitHub Desktop.
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!
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