Skip to content

Commit

Permalink
Merge pull request #595 from GrosPoulet/master
Browse files Browse the repository at this point in the history
New plug-in : picturepush.com
  • Loading branch information
GrosPoulet authored Sep 10, 2020
2 parents fd0ee6d + 40c9313 commit 0438099
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
4 changes: 4 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -1441,6 +1441,10 @@
{
"js": ["plugins/photosight.js"],
"matches": ["*://*.photosight.ru/*"]
},
{
"js": ["plugins/picturepush.js"],
"matches": ["*://*.picturepush.com/*"]
}
]
}
14 changes: 14 additions & 0 deletions plugins/picturepush.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
var hoverZoomPlugins = hoverZoomPlugins || [];
hoverZoomPlugins.push({
name:'Picturepush.com',
version:'1.0',
prepareImgLinks:function (callback) {
var res = [];
hoverZoom.urlReplace(res,
'img[src]',
/(.*)\/photo\/a\/(\d+)\/(.*)\/(.*)/,
'$1/photo/a/$2/1024/$4'
);
callback($(res), this.name);
}
});

0 comments on commit 0438099

Please sign in to comment.