From c07071a279de5f711dea047e50feee4299ad7c49 Mon Sep 17 00:00:00 2001 From: Oleg Anashkin Date: Thu, 15 Feb 2024 14:07:10 -0800 Subject: [PATCH] streamable bug fix --- js/hoverzoom.js | 6 +++--- manifest.json | 2 +- plugins/streamable_a.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/js/hoverzoom.js b/js/hoverzoom.js index 3da850d74..7d968a89f 100644 --- a/js/hoverzoom.js +++ b/js/hoverzoom.js @@ -3615,7 +3615,7 @@ var hoverZoom = { // Simulates a mousemove event to force a zoom call displayPicFromElement:function (el, force) { - if (force) { + if (el.filter(':hover').length > 0 || force) { hoverZoom.currentLink = el; $(document).mousemove(); } @@ -3778,8 +3778,8 @@ var hoverZoom = { } var handleSrc = function (src) { - if (src) - hoverZoom.prepareLink(link, src); + if (src) + hoverZoom.prepareLink(link, src); }; if (isAsync) { diff --git a/manifest.json b/manifest.json index 0f1c2795b..49b691c48 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "name": "__MSG_extName__", "short_name": "__MSG_extShortName__", - "version": "1.0.214.1", + "version": "1.0.214.2", "description": "__MSG_extDescription__", "homepage_url": "https://github.com/extesy/hoverzoom/", "author": "Oleg Anashkin", diff --git a/plugins/streamable_a.js b/plugins/streamable_a.js index 9cde92096..e5d3cf35e 100644 --- a/plugins/streamable_a.js +++ b/plugins/streamable_a.js @@ -5,7 +5,7 @@ hoverZoomPlugins.push({ if (!options.zoomVideos) return; $('a[href*="//streamable.com/"]').one('mouseenter', function () { hoverZoom.prepareFromDocument($(this), this.href, function(doc) { - return doc.querySelector('video').getAttribute('src'); + return doc.head.querySelector('meta[property="og:video:url"][content]').content; }); }); }