Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
extesy committed Aug 20, 2023
1 parent 243d2d6 commit 5e509f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/twitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ hoverZoomPlugins.push({
if (url.match(/\/[^:]+\.(?:jpe?g|gifv?|png|svg|webp|bmp|ico|xbm)(?:[\?#:].*)?$/i) || url.match(/twimg\.com/)) {
//replace .jpg by .jpg:large
url = url.replace(/(.jpe?g)$/, '$1:large').replace(/(.jpe?g)([^:])/, '$1:large$2');
` link.data().hoverZoomSrc = [url.replace(':thumb', ':large').replace(':small', ':large').replace(':medium', ':large')];
link.data().hoverZoomSrc = [url.replace(':thumb', ':large').replace(':small', ':large').replace(':medium', ':large')];
res.push(link);
link.addClass('hoverZoomLink');
` }
}
});

$('a:contains("pic.twitter.com/")').one('mouseover', function() {
Expand Down

0 comments on commit 5e509f4

Please sign in to comment.