Skip to content

Commit 0de9187

Browse files
committed
support pixiv
1 parent a9586ec commit 0de9187

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

Picviewer CE+/Picviewer CE+.user.js

Lines changed: 13 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 2017.7.31.1
9+
// @version 2017.8.5.1
1010
// @created 2011-6-15
1111
// @namespace http://userscripts.org/users/NLF
1212
// @homepage http://hoothin.com
@@ -594,6 +594,18 @@
594594
if(/\/avatar_/.test(this.src))return this.src.replace(/(media\.tumblr\.com.*_)[^_]+(\.[^\.]+)$/i,"$1512$2");
595595
else return this.src.replace(/[^\/]*(media\.tumblr\.com.*_)[^_]+(\.[^\.]+)$/i,"$1raw$2");
596596
}
597+
},
598+
{name: "Acgget",
599+
url: /acg18\.us|acgget\./,
600+
getImage: function() {
601+
return this.src.replace(/(pic\.acgget\.com\/thumb\/)w\d+_h\d+\//i,"$1w9999_h9999/");
602+
}
603+
},
604+
{name: "Pixiv",
605+
url: /pixiv\.net|pximg\.net/,
606+
getImage: function() {
607+
return this.src.replace(/pximg\.net\/c\/\d+x\d+\/img-master\/img\/(.*)_[^_]+(\.[a-z]+)$/i,"pximg.net/img-original/img/$1$2");
608+
}
597609
}
598610
];
599611

0 commit comments

Comments
 (0)