habraview/assets/habrfixer.js
2024-11-03 16:55:43 +03:00

15 lines
347 B
JavaScript

(function(document)
{
const onDOMBuild = () =>
{
// Fix blurred images
const images = document.querySelectorAll('img[data-blurred="true"]');
for (let image of images)
{
image.src = image.dataset.src;
}
};
document.addEventListener('DOMContentLoaded', onDOMBuild);
})(document);