Skip to content

Commit f53b613

Browse files
committed
fix
1 parent f0b39cd commit f53b613

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

JiandanHero/JiandanHero.user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// @name:en Jiandan Hero
44
// @name:zh-TW 煎蛋俠
55
// @namespace hoothin
6-
// @version 1.0
6+
// @version 1.1
77
// @description 为煎蛋jandan.net提供左右方向键快捷翻页、鼠标悬停显示大图、屏蔽指定用户发言等功能
88
// @description:en Tools for jandan.net
99
// @description:zh-TW 為煎蛋jandan.net提供左右方向鍵快捷翻頁、鼠標懸停顯示大圖、屏蔽指定用戶發言等功能
@@ -74,7 +74,7 @@
7474
for(i=0;i<imgs.length;i++){
7575
let img=imgs[i],left,top;
7676
img.onmouseover=function(e){
77-
bigImg.src=img.src.replace(/\/s\/custom\//,"/s/medium/").replace(/\.sinaimg\.cn\/mw600/,".sinaimg.cn/large");
77+
bigImg.src=img.src.replace(/\b(custom|square)\b/,"medium").replace(/\.sinaimg\.cn\/mw600/,".sinaimg.cn/large");
7878
document.body.appendChild(bigImg);
7979
bigImg.onload=function(){
8080
relocBigImg(left, top);

0 commit comments

Comments
 (0)