Skip to content

Commit

Permalink
Merge pull request #563 from GrosPoulet/master
Browse files Browse the repository at this point in the history
New plug-in : Fanart.tv
  • Loading branch information
GrosPoulet authored Aug 30, 2020
2 parents ec40b08 + 4af0c3b commit d0535c5
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
4 changes: 4 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -1384,6 +1384,10 @@
{
"js": ["plugins/bakashots.js"],
"matches": ["*://*.bakashots.me/*"]
},
{
"js": ["plugins/fanart.js"],
"matches": ["*://*.fanart.tv/*"]
}
]
}
17 changes: 17 additions & 0 deletions plugins/fanart.js
Original file line number Diff line number Diff line change
@@ -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);
}
});

0 comments on commit d0535c5

Please sign in to comment.