Greasy Fork is available in English.

HindustanTimes - fetch lazy-load images immediately

Fetch lazy-load images immediately at document load

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// ==UserScript==
// @name        HindustanTimes - fetch lazy-load images immediately
// @description Fetch lazy-load images immediately at document load
// @include     http://www.hindustantimes.com/*
// @version     1.0.1
// @namespace   wOxxOm.scripts
// @author      wOxxOm
// @license     MIT License
// @run-at      document-start
// @grant       none
// @require     https://greasyfork.org/scripts/12228/code/setMutationHandler.js
// ==/UserScript==

setMutationHandler(document, 'img.lazy', function(nodes) {
  nodes.forEach(function(n) {
    n.src = n.dataset.original;
    n.classList.remove('lazy');
  });
  return true;
});