Last active
March 17, 2020 14:57
-
-
Save OJFord/dbd1645b75f6f4ceccfda3d5b55c7220 to your computer and use it in GitHub Desktop.
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
// ==UserScript== | |
// @name Unblur Bloomberg noscript images | |
// @description Blocking JS causes Bloomberg article images not to fully load & de-blur. This minimal JS will do that, and only that. | |
// @version 0.1.1 | |
// @author Oliver Ford | |
// @match https://www.bloomberg.com/* | |
// @grant none | |
// @downloadURL https://gist.github.com/OJFord/dbd1645b75f6f4ceccfda3d5b55c7220/raw | |
// @updateURL https://gist.github.com/OJFord/dbd1645b75f6f4ceccfda3d5b55c7220/raw | |
// | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
let images = document.getElementsByClassName('lazy-img__image'); | |
for (let image of images) { | |
image.src = image.getAttribute('data-native-src'); | |
image.style.filter = "none"; | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment