Skip to content

Instantly share code, notes, and snippets.

@OJFord
Last active March 17, 2020 14:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save OJFord/dbd1645b75f6f4ceccfda3d5b55c7220 to your computer and use it in GitHub Desktop.
Save OJFord/dbd1645b75f6f4ceccfda3d5b55c7220 to your computer and use it in GitHub Desktop.
// ==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