|
6 | 6 | // @description Powerful picture viewing tool online, which can popup/scale/rotate/batch save pictures or find the HD original picture automatically |
7 | 7 | // @description:zh-CN NLF 的围观图修改版,增加高清原图查找显示(在线看图工具,支持图片翻转、旋转、缩放、弹出大图、批量保存、查找原图) |
8 | 8 | // @description:zh-TW NLF 的圍觀圖修改版,增加高清原圖查詢顯示(線上看圖工具,支援圖片翻轉、旋轉、縮放、彈出大圖、批量儲存、查詢原圖) |
9 | | -// @version 2017.10.27.1 |
| 9 | +// @version 2017.10.27.2 |
10 | 10 | // @created 2011-6-15 |
11 | 11 | // @namespace http://userscripts.org/users/NLF |
12 | 12 | // @homepage http://hoothin.com |
|
105 | 105 |
|
106 | 106 | autoZoom: true, // 如果有放大,则把图片及 sidebar 部分的缩放改回 100%,增大可视面积(仅在 chrome 下有效) |
107 | 107 | descriptionLength: 32, // 注释的最大宽度 |
| 108 | + editSite: "Pixlr" |
108 | 109 | }, |
109 | 110 |
|
110 | 111 | imgWindow:{// 图片窗相关设置 |
|
1822 | 1823 | '<span class="pv-gallery-vertical-align-helper"></span>'+ |
1823 | 1824 | '</span>'+ |
1824 | 1825 | '<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>'+ |
1826 | 1827 | '<span class="pv-gallery-head-command-drop-list-item" data-command="openInNewWindow" title="新窗口打开图片">新窗口打开</span>'+ |
1827 | 1828 | '<span class="pv-gallery-head-command-drop-list-item" data-command="scrollIntoView" title="滚动到当前图片所在的位置">定位到图片</span>'+ |
1828 | 1829 | '<span class="pv-gallery-head-command-drop-list-item" data-command="enterCollection" title="查看所有收藏的图片">查看收藏</span>'+ |
|
2411 | 2412 | window.open(self.src,'_blank'); |
2412 | 2413 | }break; |
2413 | 2414 | 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'); |
2415 | 2416 | }break; |
2416 | 2417 | case 'scrollIntoView':{ |
2417 | 2418 | if(collection.mMode){ |
@@ -8602,6 +8603,15 @@ left: -45px;\ |
8602 | 8603 | type: 'textarea', |
8603 | 8604 | "default": prefs.gallery.autoOpenSites |
8604 | 8605 | }, |
| 8606 | + 'gallery.editSite': { |
| 8607 | + label: '在线编辑', |
| 8608 | + type: 'select', |
| 8609 | + options: { |
| 8610 | + 'Pixlr': 'Pixlr', |
| 8611 | + 'Toolpic': 'Toolpic' |
| 8612 | + }, |
| 8613 | + "default": prefs.gallery.editSite, |
| 8614 | + }, |
8605 | 8615 |
|
8606 | 8616 | // 图片窗口 |
8607 | 8617 | 'imgWindow.fitToScreen': { |
|
0 commit comments