Skip to content

Commit

Permalink
New plug-in for: kotnauction.com (extesy#1332)
Browse files Browse the repository at this point in the history
  • Loading branch information
GrosPoulet committed Apr 21, 2024
1 parent 318fc8e commit 4896578
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
4 changes: 4 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2049,6 +2049,10 @@
{
"js": ["plugins/worldatlas.js"],
"matches": ["*://*.worldatlas.com/*"]
},
{
"js": ["plugins/kotnauction.js"],
"matches": ["*://*.kotnauction.com/*"]
}
]
}
18 changes: 18 additions & 0 deletions plugins/kotnauction.js
Original file line number Diff line number Diff line change
@@ -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);
}
});

0 comments on commit 4896578

Please sign in to comment.