Skip to content

Commit ebbbd6e

Browse files
committed
fix
1 parent 837de08 commit ebbbd6e

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

JiandanHero/JiandanHero.user.js

Lines changed: 3 additions & 3 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.6
6+
// @version 1.7
77
// @icon http://cdn.jandan.net/static/img/favicon.ico
88
// @description 为煎蛋jandan.net提供左右方向键快捷翻页、上下方向键快捷切图、鼠标悬停显示大图、屏蔽指定用户发言等功能
99
// @description:en Tools for jandan.net
@@ -133,7 +133,7 @@
133133
for(i=0;i<imgs.length;i++){
134134
let img=imgs[i];
135135
img.onmouseover=function(e){
136-
src=img.src.replace(/\b(custom|square)\b/,"medium").replace(/\.sinaimg\.cn\/(mw600|thumb\d+)/,".sinaimg.cn/large");
136+
src=img.src.replace(/\b(!square)\b/,"").replace(/\b(custom|square)\b/,"medium").replace(/\.sinaimg\.cn\/thumb\d+/,".sinaimg.cn/large");
137137
src=isHttps?src.replace(/http\:\/\//,"https://"):src.replace(/https\:\/\//,"http://");
138138
bigImg.src=img.src;
139139
bigImg.src=src;
@@ -163,7 +163,7 @@
163163
};
164164
}
165165
$("p").on("mouseover","div.gif-mask",function(e){
166-
src=this.previousSibling.getAttribute("org_src").replace(/\b(custom|square)\b/,"medium").replace(/\.sinaimg\.cn\/(mw600|thumb\d+)/,".sinaimg.cn/large");
166+
src=this.previousSibling.getAttribute("org_src").replace(/\b(!square)\b/,"").replace(/\b(custom|square)\b/,"medium").replace(/\.sinaimg\.cn\/(mw600|thumb\d+)/,".sinaimg.cn/large");
167167
src=isHttps?src.replace(/http\:\/\//,"https://"):src.replace(/https\:\/\//,"http://");
168168
bigImg.src=this.previousSibling.src;
169169
bigImg.src=src;

Picviewer CE+/Picviewer CE+.user.js

Lines changed: 2 additions & 2 deletions
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 2019.7.31.1
9+
// @version 2019.9.2.1
1010
// @created 2011-6-15
1111
// @namespace http://userscripts.org/users/NLF
1212
// @homepage http://hoothin.com
@@ -1074,7 +1074,7 @@
10741074
{name: '知乎',
10751075
url: /zhihu\.com/,
10761076
getImage: function() {
1077-
return this.src.replace(/_(b|s|l|\d+x\d+)\./,".");
1077+
return this.src.replace(/_(b|xs|s|l|\d+x\d+)\./,".");
10781078
}
10791079
},
10801080
{name: 'Nyaa',

0 commit comments

Comments
 (0)