diff --git a/manifest.json b/manifest.json index c2878a583..ceef8eafd 100644 --- a/manifest.json +++ b/manifest.json @@ -2049,6 +2049,10 @@ { "js": ["plugins/worldatlas.js"], "matches": ["*://*.worldatlas.com/*"] + }, + { + "js": ["plugins/kotnauction.js"], + "matches": ["*://*.kotnauction.com/*"] } ] } diff --git a/plugins/kotnauction.js b/plugins/kotnauction.js new file mode 100644 index 000000000..01bb498a4 --- /dev/null +++ b/plugins/kotnauction.js @@ -0,0 +1,18 @@ +var hoverZoomPlugins = hoverZoomPlugins || []; +hoverZoomPlugins.push( { + name: 'kotnauction', + version: '1.0', + prepareImgLinks: function(callback) { + var name = this.name; + var res = []; + + $('img[src]').each(function () { + var link = $(this); + const src = this.src; + link.data().hoverZoomSrc = [src + '?123456']; + res.push(link); + }); + + callback($(res), this.name); + } +});