diff --git a/manifest.json b/manifest.json index e1e290874..d86c94bdb 100644 --- a/manifest.json +++ b/manifest.json @@ -1441,6 +1441,10 @@ { "js": ["plugins/photosight.js"], "matches": ["*://*.photosight.ru/*"] + }, + { + "js": ["plugins/picturepush.js"], + "matches": ["*://*.picturepush.com/*"] } ] } diff --git a/plugins/picturepush.js b/plugins/picturepush.js new file mode 100644 index 000000000..91028104f --- /dev/null +++ b/plugins/picturepush.js @@ -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); + } +});