您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Search for images that didn't load on a page and if it finds, tell the browser to try to load them. You probably should only use this on some occasions, I think.
// ==UserScript== // @name Reload Broken Image // @description Search for images that didn't load on a page and if it finds, tell the browser to try to load them. You probably should only use this on some occasions, I think. // @namespace replbackgroundiwithimgtag // @version 1.0.4 // @author k3abird // @include *example.com* // ==/UserScript== (function loop() { setTimeout(function () { (async () => { for (const x of document.querySelectorAll("img:-moz-broken")) { x.src = x.src; await new Promise(r => setTimeout(r, 100)); console.log(x) }; console.log("done") })() }, 10000); }()); (function loop() { setTimeout(function () { (async () => { for (const x of document.querySelectorAll("img")) { if (!x.naturalWidth) { x.src = x.src; await new Promise(r => setTimeout(r, 100)); console.log(x) } }; console.log("done") })() }, 10000); }());