File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66// @description Powerful picture viewing tool online, which can popup/scale/rotate/batch save pictures automatically
77// @description:zh-CN 在线看图工具,支持图片翻转、旋转、缩放、弹出大图、批量保存
88// @description:zh-TW 線上看圖工具,支援圖片翻轉、旋轉、縮放、彈出大圖、批量儲存
9- // @version 2022.1.24.3
9+ // @version 2022.1.25.1
1010// @created 2011-6-15
1111// @namespace https://github.com/hoothin/UserScripts
1212// @homepage http://hoothin.com
@@ -3823,7 +3823,8 @@ ImgOps | https://imgops.com/#b#`;
38233823 this.img.style.display='none';
38243824 this.eleMaps['img_broken'].style.display='inline-block';
38253825 }else{
3826- var srcs=dataset(relatedThumb, 'srcs').split(",");
3826+ var srcs=dataset(relatedThumb, 'srcs');
3827+ if(srcs && srcs.length>0)srcs=srcs.split(",");
38273828 var self=this;
38283829 this.img.onload=function(){
38293830 var imgNaturalSize={
@@ -3834,7 +3835,7 @@ ImgOps | https://imgops.com/#b#`;
38343835 self.imgNaturalSize=imgNaturalSize;
38353836 self.fitToScreen();
38363837 }
3837- if(srcs){
3838+ if(srcs && srcs.length>0 ){
38383839 var src=srcs.shift();
38393840 dataset(relatedThumb, 'srcs',srcs.join(","));
38403841 if(src){
You can’t perform that action at this time.
0 commit comments