From 3ec18fc33fc3b4342206db33787b790aae965134 Mon Sep 17 00:00:00 2001 From: GrosPoulet Date: Thu, 10 Sep 2020 16:11:09 +0200 Subject: [PATCH] New plug-in : photoforum.ru --- manifest.json | 4 ++++ plugins/photoforum.js | 16 ++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 plugins/photoforum.js diff --git a/manifest.json b/manifest.json index ac3c1a704..dda50a0c2 100644 --- a/manifest.json +++ b/manifest.json @@ -1421,6 +1421,10 @@ { "js": ["plugins/photoblink.js"], "matches": ["*://*.photoblink.com/*"] + }, + { + "js": ["plugins/photoforum.js"], + "matches": ["*://*.photoforum.ru/*"] } ] } diff --git a/plugins/photoforum.js b/plugins/photoforum.js new file mode 100644 index 000000000..e6bf131a4 --- /dev/null +++ b/plugins/photoforum.js @@ -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); + } +}); \ No newline at end of file