Greasy Fork 支持简体中文。

Disable Wechat Images Lazyload

Disable Wechat Images Lazyload, Show Origin Images Directly

  1. // ==UserScript==
  2. // @name Disable Wechat Images Lazyload
  3. // @name:zh-CN 微信公众号去除图片延迟加载
  4. // @description Disable Wechat Images Lazyload, Show Origin Images Directly
  5. // @description:zh-CN 去除图片延迟加载,直接显示原图片
  6. // @namespace https://www.runningcheese.com
  7. // @version 0.2
  8. // @author RunningCheese
  9. // @match https://mp.weixin.qq.com/s/*
  10. // @match https://mp.weixin.qq.com/s?__biz=*
  11. // @run-at document-start
  12. // @require https://code.jquery.com/jquery-3.3.1.min.js
  13. // @icon https://t1.gstatic.cn/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url=https://mp.weixin.qq.com
  14. // @license MIT
  15. // ==/UserScript==
  16.  
  17.  
  18. var $ = window.jQuery;
  19.  
  20. $(document).ready(function() {
  21. setTimeout(function(){
  22. $('img').each(function(){
  23. var dataSrc = $(this).attr('data-src');
  24. if (dataSrc){
  25. $(this).attr('src', dataSrc);
  26. $(this).removeAttr('data-src');
  27. }
  28. });
  29. }, 1000);
  30. });
  31.  
  32. document.body.innerHTML = document.body.innerHTML.replace("wx_lazy=1", "")
  33. document.body.innerHTML.replace(new RegExp("data-src", "g"), "src");