Skip to content

Commit 5a367d3

Browse files
committed
add toolpic
1 parent 6d89021 commit 5a367d3

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

Picviewer CE+/Picviewer CE+.user.js

Lines changed: 13 additions & 3 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 2017.10.27.1
9+
// @version 2017.10.27.2
1010
// @created 2011-6-15
1111
// @namespace http://userscripts.org/users/NLF
1212
// @homepage http://hoothin.com
@@ -105,6 +105,7 @@
105105

106106
autoZoom: true, // 如果有放大,则把图片及 sidebar 部分的缩放改回 100%,增大可视面积(仅在 chrome 下有效)
107107
descriptionLength: 32, // 注释的最大宽度
108+
editSite: "Pixlr"
108109
},
109110

110111
imgWindow:{// 图片窗相关设置
@@ -1822,7 +1823,7 @@
18221823
'<span class="pv-gallery-vertical-align-helper"></span>'+
18231824
'</span>'+
18241825
'<span class="pv-gallery-head-command-drop-list pv-gallery-head-command-drop-list-others">'+
1825-
'<span class="pv-gallery-head-command-drop-list-item" data-command="psImage" title="使用Pixlr在线编辑该图片">在线编辑</span>'+
1826+
'<span class="pv-gallery-head-command-drop-list-item" data-command="psImage" title="使用'+prefs.gallery.editSite+'在线编辑该图片">在线编辑</span>'+
18261827
'<span class="pv-gallery-head-command-drop-list-item" data-command="openInNewWindow" title="新窗口打开图片">新窗口打开</span>'+
18271828
'<span class="pv-gallery-head-command-drop-list-item" data-command="scrollIntoView" title="滚动到当前图片所在的位置">定位到图片</span>'+
18281829
'<span class="pv-gallery-head-command-drop-list-item" data-command="enterCollection" title="查看所有收藏的图片">查看收藏</span>'+
@@ -2411,7 +2412,7 @@
24112412
window.open(self.src,'_blank');
24122413
}break;
24132414
case 'psImage':{
2414-
window.open('https://pixlr.com/editor/?image='+self.src,'_blank');
2415+
window.open((prefs.gallery.editSite=='Pixlr'?'https://pixlr.com/editor/?image=':'https://www.toolpic.com/apieditor.html?image=')+self.src,'_blank');
24152416
}break;
24162417
case 'scrollIntoView':{
24172418
if(collection.mMode){
@@ -8602,6 +8603,15 @@ left: -45px;\
86028603
type: 'textarea',
86038604
"default": prefs.gallery.autoOpenSites
86048605
},
8606+
'gallery.editSite': {
8607+
label: '在线编辑',
8608+
type: 'select',
8609+
options: {
8610+
'Pixlr': 'Pixlr',
8611+
'Toolpic': 'Toolpic'
8612+
},
8613+
"default": prefs.gallery.editSite,
8614+
},
86058615

86068616
// 图片窗口
86078617
'imgWindow.fitToScreen': {

0 commit comments

Comments
 (0)