查看动态图

This commit is contained in:
fthvgb1 2020-02-20 18:28:17 +08:00
parent c794a4543c
commit f404a8634c

View File

@ -14,10 +14,65 @@
(function () { (function () {
'use strict'; 'use strict';
function gif3(v) {
var imgs = v.querySelectorAll('img.BDE_Image');
if (imgs.length > 0) {
imgs.forEach(img => {
var src = img.src;
var s = /&src=(.*)/.exec(src);
if (s != null) {
var x = s.length > 0 ? s[1] : src;
img.src = decodeURIComponent(x);
}
})
}
}
function gif(v) {
var imgs = v.querySelectorAll('div[data-class="BDE_Image"]');
if (imgs.length > 0) {
imgs.forEach(value => {
var src = decodeURIComponent(value.getAttribute('data-url'));
//console.log(src);
var s = /&src=(.*)/.exec(src);
if (s != null) {
var ss = s[1];
var img = document.createElement('img');
img.src = (ss);
img.className = 'BDE_Image';
value.outerHTML = img.outerHTML;
}
})
}
gif3(v)
}
function t() { function t() {
lz(); lz();
$("ul#pblist>li").forEach(function (e) { $("ul#pblist>li").forEach(function (e, iii) {
f(e); f(e);
if (iii === 0) {
var oo = e.querySelectorAll('.pb_img_item');
if (oo.length > 0) {
oo.forEach(value => {
if (value.getAttribute('data-url')) {
value.setAttribute('data-class', 'BDE_Image');
value.setAttribute('src', value.getAttribute('data-url'));
}
});
//oo[0].parentElement.outerHTML=`<span class="wrap pbimgwapper">${oo[0].parentElement.innerHTML}</span>`
}
var zz = e.querySelector('#diversBanner');
if (zz) {
zz.parentNode.removeChild(zz);
}
}
gif(e);
var ee = $(e); var ee = $(e);
var tid = ee.attr("tid"); var tid = ee.attr("tid");
var content = ee.find(".list_item_top"); var content = ee.find(".list_item_top");