Skip to content

Commit

Permalink
Merge pull request #598 from GrosPoulet/master
Browse files Browse the repository at this point in the history
Update plug-in : Spinchat
  • Loading branch information
GrosPoulet authored Sep 10, 2020
2 parents a9039c6 + fb9e9d4 commit 8faeb1f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions plugins/spinchat.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
var hoverZoomPlugins = hoverZoomPlugins || [];
hoverZoomPlugins.push({
name:'Spinchat',
version:'0.1',
version:'0.2',
prepareImgLinks:function (callback) {
var res = [];

hoverZoom.urlReplace(res,
'img[src*="/mini/"]',
'/mini/',
'/full/'
);
callback($(res));

hoverZoom.urlReplace(res,
'img[src]',
'/image/1/0/user/',
'/user/full/'
);

callback($(res), this.name);
}
});

0 comments on commit 8faeb1f

Please sign in to comment.