From 66054c7a36e041cfc7befab00150a6c571e3b90f Mon Sep 17 00:00:00 2001 From: Alexey Date: Mon, 30 Mar 2026 18:34:51 +0300 Subject: [PATCH 1/2] issuu.com: fix plugin --- plugins/domains/issuu.com.js | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/plugins/domains/issuu.com.js b/plugins/domains/issuu.com.js index 281a3ae92..e5486da3f 100644 --- a/plugins/domains/issuu.com.js +++ b/plugins/domains/issuu.com.js @@ -1,25 +1,21 @@ export default { - re: /^https?:\/\/issuu\.com\/[\w_.-]+\/docs\/([\w_.-]+)/i, + re: /^https?:\/\/issuu\.com\/([\w_.-]+)\/docs\/([\w_.-]+)/i, - mixins: [ - "oembed-thumbnail", - "oembed-author", - "oembed-title", - "oembed-site", - "oembed-description", - // "og-video", - 'domain-icon' - ], + mixins: [ "*" ], - getLink: function (oembed) { + getLink: function (urlMatch) { - if (!oembed.html) { + if (!urlMatch || urlMatch.length < 3) { return; } - // let's make it responsive - var html = oembed.html.replace (/style=\"[^\"]+\"/i, 'style="top: 0px; left: 0px; width: 100%; height: 100%; position: absolute;"'); + const embedUrl = `https://e.issuu.com/embed.html?d=${encodeURIComponent(urlMatch[2])}&u=${encodeURIComponent(urlMatch[1])}`; + + let html = ``; + + html = html.replace(/style=\"[^\"]+\"/i, 'style="top: 0px; left: 0px; width: 100%; height: 100%; position: absolute;"'); + var aspect = 4/3; html = '
Date: Mon, 30 Mar 2026 18:46:40 +0300 Subject: [PATCH 2/2] issuu.com: disable tests --- plugins/domains/issuu.com.js | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/plugins/domains/issuu.com.js b/plugins/domains/issuu.com.js index e5486da3f..98a88fe49 100644 --- a/plugins/domains/issuu.com.js +++ b/plugins/domains/issuu.com.js @@ -1,21 +1,25 @@ export default { - re: /^https?:\/\/issuu\.com\/([\w_.-]+)\/docs\/([\w_.-]+)/i, + re: /^https?:\/\/issuu\.com\/[\w_.-]+\/docs\/([\w_.-]+)/i, - mixins: [ "*" ], + mixins: [ + "oembed-thumbnail", + "oembed-author", + "oembed-title", + "oembed-site", + "oembed-description", + // "og-video", + 'domain-icon' + ], - getLink: function (urlMatch) { + getLink: function (oembed) { - if (!urlMatch || urlMatch.length < 3) { + if (!oembed.html) { return; } - const embedUrl = `https://e.issuu.com/embed.html?d=${encodeURIComponent(urlMatch[2])}&u=${encodeURIComponent(urlMatch[1])}`; - - let html = ``; - - html = html.replace(/style=\"[^\"]+\"/i, 'style="top: 0px; left: 0px; width: 100%; height: 100%; position: absolute;"'); - + // let's make it responsive + var html = oembed.html.replace (/style=\"[^\"]+\"/i, 'style="top: 0px; left: 0px; width: 100%; height: 100%; position: absolute;"'); var aspect = 4/3; html = '