From fab39732c5dbcc37918d3cb12dbec59605782f88 Mon Sep 17 00:00:00 2001 From: xing Date: Sun, 24 Sep 2023 22:42:05 +0800 Subject: [PATCH] =?UTF-8?q?fix=E5=A4=B4=E5=83=8F=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tieba page.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tieba page.js b/tieba page.js index b0083e8..f2f18c9 100644 --- a/tieba page.js +++ b/tieba page.js @@ -1,7 +1,7 @@ // ==UserScript== // @name tieba page // @namespace http://tampermonkey.net/ -// @version 1.023 +// @version 1.024 // @author fthvgb1 // @match https://tieba.baidu.com/* // @match https://tiebac.baidu.com/* @@ -956,7 +956,8 @@ const u = new URL(src) if (u.searchParams.has('src')) { src = decodeURIComponent(u.searchParams.get('src')); - src = 'https://image.baidu.com/search/down?url=' + src; + src = src.replace(/.*\.baidu.com\//, '') + src = 'https://gss0.bdstatic.com/6LZ1dD3d1sgCo2Kml5_Y_D3/' + src; } img.src = src; }