您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
去除图片延迟加载,直接显示原图片
当前为
- // ==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.1
- // @author RunningCheese
- // @match http://mp.weixin.qq.com/s?*
- // @match https://mp.weixin.qq.com/s?*
- // @match https://mp.weixin.qq.com/s?*
- // @match http://mp.weixin.qq.com/s/*
- // @match https://mp.weixin.qq.com/s/*
- // @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");