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 or find the HD original picture automatically
77// @description :zh-CN NLF 的围观图修改版,增加高清原图查找显示(在线看图工具,支持图片翻转、旋转、缩放、弹出大图、批量保存、查找原图)
88// @description :zh-TW NLF 的圍觀圖修改版,增加高清原圖查詢顯示(線上看圖工具,支援圖片翻轉、旋轉、縮放、彈出大圖、批量儲存、查詢原圖)
9- // @version 2018.6.15 .1
9+ // @version 2018.6.19 .1
1010// @created 2011-6-15
1111// @namespace http://userscripts.org/users/NLF
1212// @homepage http://hoothin.com
42654265 return { pre :pre , next :next } ;
42664266 } ,
42674267 canonicalUri :function ( src , base_path ) {
4268+ if ( src == "#" ) return location . href ;
42684269 var root_page = / ^ [ ^ ? # ] * \/ / . exec ( location . href ) [ 0 ] ,
42694270 root_domain = / ^ \w + \: \/ \/ \/ ? [ ^ \/ ] + / . exec ( root_page ) [ 0 ] ,
42704271 absolute_regex = / ^ \w + \: \/ \/ / ;
43384339 nimg . src = isrc ;
43394340 nimg . onload = function ( ) {
43404341 var result = findPic ( this ) ;
4341- if ( result ) {
4342+ if ( result && ! self . _dataCache [ this . src ] ) {
43424343 self . data . push ( result ) ;
43434344 self . _appendThumbSpans ( [ result ] ) ;
43444345 self . loadThumb ( ) ;
44184419 nimg . src = isrc ;
44194420 nimg . onload = function ( ) {
44204421 var result = findPic ( this ) ;
4421- if ( result ) {
4422+ if ( result && ! self . _dataCache [ this . src ] ) {
44224423 self . data . push ( result ) ;
44234424 self . _appendThumbSpans ( [ result ] ) ;
44244425 self . loadThumb ( ) ;
You can’t perform that action at this time.
0 commit comments