Disable Wechat Images Lazyload

Disable Wechat Images Lazyload, Show Origin Images Directly

// ==UserScript==
// @name               Disable Wechat Images Lazyload
// @name:zh-CN         微信公众号去除图片延迟加载
// @description        Disable Wechat Images Lazyload, Show Origin Images Directly
// @description:zh-CN  去除图片延迟加载,直接显示原图片
// @namespace          https://www.runningcheese.com
// @version            0.2
// @author             RunningCheese
// @match              https://mp.weixin.qq.com/s/*
// @match              https://mp.weixin.qq.com/s?__biz=*
// @run-at             document-start
// @require            https://code.jquery.com/jquery-3.3.1.min.js
// @icon               https://t1.gstatic.cn/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url=https://mp.weixin.qq.com
// @license            MIT
// ==/UserScript==


var $ = window.jQuery;

$(document).ready(function() {
    setTimeout(function(){
        $('img').each(function(){
            var dataSrc = $(this).attr('data-src');
            if (dataSrc){
                $(this).attr('src', dataSrc);
                $(this).removeAttr('data-src');
            }
        });
    }, 1000);
});

document.body.innerHTML = document.body.innerHTML.replace("wx_lazy=1", "")
document.body.innerHTML.replace(new RegExp("data-src", "g"), "src");