firefox组图

This commit is contained in:
fthvgb1 2020-04-11 16:12:44 +08:00
parent aa30fa16a6
commit bcf49f1d9d

View File

@ -17,6 +17,12 @@
let obs; let obs;
function jpg(v) { 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"])'); let imgs = v.querySelectorAll('.pb_img_item:not([data-type="gif"]),[data-class="BDE_Image"]:not([data-type="gif"])');
if (imgs.length > 0) { if (imgs.length > 0) {
imgs.forEach(value => { imgs.forEach(value => {