From bcf49f1d9df1450a968d14d06e99af2a6c73cab4 Mon Sep 17 00:00:00 2001 From: fthvgb1 Date: Sat, 11 Apr 2020 16:12:44 +0800 Subject: [PATCH] =?UTF-8?q?firefox=E7=BB=84=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tieba page.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tieba page.js b/tieba page.js index 7b4fa86..4593626 100644 --- a/tieba page.js +++ b/tieba page.js @@ -17,6 +17,12 @@ let obs; function jpg(v) { + let fimgs = v.querySelectorAll('span[class="wrap pbimgwapper"]>img.BDE_Image'); + if (fimgs.length > 0) { + fimgs.forEach(img => { + img.src = img.src.replace('tiebapic', 'imgsrc').replace('tiebapic', 'imgsrc'); + }) + } let imgs = v.querySelectorAll('.pb_img_item:not([data-type="gif"]),[data-class="BDE_Image"]:not([data-type="gif"])'); if (imgs.length > 0) { imgs.forEach(value => {