Skip to content

Commit

Permalink
Merge pull request #590 from GrosPoulet/master
Browse files Browse the repository at this point in the history
New plug-in : photoforum.ru
  • Loading branch information
GrosPoulet authored Sep 10, 2020
2 parents c2dba2d + 3ec18fc commit b9e67d1
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -1421,6 +1421,10 @@
{
"js": ["plugins/photoblink.js"],
"matches": ["*://*.photoblink.com/*"]
},
{
"js": ["plugins/photoforum.js"],
"matches": ["*://*.photoforum.ru/*"]
}
]
}
16 changes: 16 additions & 0 deletions plugins/photoforum.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
var hoverZoomPlugins = hoverZoomPlugins || [];
hoverZoomPlugins.push({
name:'photoforum.ru',
version:'1.0',
prepareImgLinks:function (callback) {
var res = [];

hoverZoom.urlReplace(res,
'img[src]',
['.th/', '.th.', '.thsq/', '.thsq.'],
['/', '.', '/', '.']
);

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

0 comments on commit b9e67d1

Please sign in to comment.