Skip to content

Commit

Permalink
Merge pull request #565 from GrosPoulet/master
Browse files Browse the repository at this point in the history
New plug-in : Fotki
  • Loading branch information
GrosPoulet authored Aug 30, 2020
2 parents 1edbcb9 + 71fce7b commit 42aa971
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 @@ -1388,6 +1388,10 @@
{
"js": ["plugins/fanart.js"],
"matches": ["*://*.fanart.tv/*"]
},
{
"js": ["plugins/fotki.js"],
"matches": ["*://*.fotki.com/*"]
}
]
}
16 changes: 16 additions & 0 deletions plugins/fotki.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
var hoverZoomPlugins = hoverZoomPlugins || [];
hoverZoomPlugins.push({
name:'fotki.com',
version:'1.0',
prepareImgLinks:function (callback) {
var res = [];

hoverZoom.urlReplace(res,
'img[src]',
'-th',
'-vi'
);

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

0 comments on commit 42aa971

Please sign in to comment.