Skip to content

Commit 6c256d5

Browse files
committed
fix
1 parent 1d20f60 commit 6c256d5

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

Picviewer CE+/Picviewer CE+.user.js

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// @description Powerful picture viewing tool online, which can popup/scale/rotate/batch save pictures or find the HD original picture automatically
77
// @description:zh-CN NLF 的围观图修改版,增加高清原图查找显示(在线看图工具,支持图片翻转、旋转、缩放、弹出大图、批量保存、查找原图)
88
// @description:zh-TW NLF 的圍觀圖修改版,增加高清原圖查詢顯示(線上看圖工具,支援圖片翻轉、旋轉、縮放、彈出大圖、批量儲存、查詢原圖)
9-
// @version 2016.11.30.1
9+
// @version 2016.11.30.2
1010
// @created 2011-6-15
1111
// @namespace http://userscripts.org/users/NLF
1212
// @homepage http://hoothin.com
@@ -263,6 +263,19 @@
263263
};
264264
},
265265
},
266+
{name:"bilibili",
267+
enabled:true,
268+
url:/^https?:\/\/[^.]+\.bilibili.com/i,
269+
getImage:function(img){
270+
var oldsrc=this.src;
271+
var pic=/\d+_\d+\/|\d+_x\d+\.jpg$|@\d+w_\d+h\.webp$/i;
272+
var newsrc;
273+
if(pic.test(oldsrc)){
274+
newsrc=oldsrc.replace(pic,'');
275+
return newsrc==oldsrc? '' : newsrc;
276+
}
277+
}
278+
},
266279
{name:"腾讯微博",
267280
siteExample:"http://t.qq.com/p/news",
268281
enabled:true,

0 commit comments

Comments
 (0)