|
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 2018.7.7.1 |
| 9 | +// @version 2018.7.10.1 |
10 | 10 | // @created 2011-6-15 |
11 | 11 | // @namespace http://userscripts.org/users/NLF |
12 | 12 | // @homepage http://hoothin.com |
|
3945 | 3945 | iStatisCopy[item.type].count++; |
3946 | 3946 | var spanMark=document.createElement("span"); |
3947 | 3947 | thumbnails.appendChild(spanMark); |
3948 | | - spanMark.outerHTML = '<span class="pv-gallery-sidebar-thumb-container' + |
3949 | | - '" data-type="' + item.type + |
3950 | | - '" data-src="' + item.src + |
3951 | | - '" data-srcs="' + (item.srcs?item.srcs.join(","):"") + |
3952 | | - (item.xhr ? '" data-xhr="' + encodeURIComponent(JSON.stringify(item.xhr)) : '') + |
3953 | | - '" data-description="' + encodeURIComponent(item.description || '') + |
3954 | | - '" data-thumb-src="' + item.imgSrc + |
3955 | | - '" title="' + (item.img?item.img.title:"") + |
3956 | | - '">' + |
3957 | | - '<span class="pv-gallery-vertical-align-helper"></span>' + |
3958 | | - '<span class="pv-gallery-sidebar-thumb-loading" title="'+i18n("loading")+'......"></span>' + |
3959 | | - '</span>'; |
| 3948 | + try{ |
| 3949 | + spanMark.className="pv-gallery-sidebar-thumb-container"; |
| 3950 | + spanMark.dataset.type=item.type; |
| 3951 | + spanMark.dataset.src=item.src; |
| 3952 | + spanMark.dataset.srcs=item.srcs; |
| 3953 | + if(item.xhr)spanMark.dataset.xhr=encodeURIComponent(JSON.stringify(item.xhr)); |
| 3954 | + spanMark.dataset.description=encodeURIComponent(item.description || ''); |
| 3955 | + spanMark.dataset.thumbSrc=item.imgSrc; |
| 3956 | + spanMark.title=(item.img?item.img.title:""); |
| 3957 | + spanMark.innerHTML='<span class="pv-gallery-vertical-align-helper"></span>' + |
| 3958 | + '<span class="pv-gallery-sidebar-thumb-loading" title="'+i18n("loading")+'......"></span>'; |
| 3959 | + }catch(e){}; |
3960 | 3960 | }); |
3961 | 3961 |
|
3962 | 3962 | var self = this; |
|
0 commit comments