From 4af0c3bb621807f2381565f2c1f7ab5a5df463b9 Mon Sep 17 00:00:00 2001 From: GrosPoulet Date: Sun, 30 Aug 2020 17:18:46 +0200 Subject: [PATCH] New plug-in : Fanart.tv --- manifest.json | 4 ++++ plugins/fanart.js | 17 +++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 plugins/fanart.js diff --git a/manifest.json b/manifest.json index 61c616793..9900180f4 100644 --- a/manifest.json +++ b/manifest.json @@ -1384,6 +1384,10 @@ { "js": ["plugins/bakashots.js"], "matches": ["*://*.bakashots.me/*"] + }, + { + "js": ["plugins/fanart.js"], + "matches": ["*://*.fanart.tv/*"] } ] } diff --git a/plugins/fanart.js b/plugins/fanart.js new file mode 100644 index 000000000..e0e8a5c39 --- /dev/null +++ b/plugins/fanart.js @@ -0,0 +1,17 @@ +var hoverZoomPlugins = hoverZoomPlugins || []; +hoverZoomPlugins.push({ + name:'fanart.tv', + version:'1.0', + prepareImgLinks:function (callback) { + + var res = []; + + hoverZoom.urlReplace(res, + 'img[src]', + /\/thumb\.php\?src=\/(.*)&(.*)/, + '/$1' + ); + + callback($(res), this.name); + } +}); \ No newline at end of file