From 1498db10e82e2aca41ec5523cf89e80ade4e3377 Mon Sep 17 00:00:00 2001 From: Ivan Paramonau Date: Thu, 13 Aug 2026 09:35:09 -0400 Subject: [PATCH 1/2] Fix Slideshare title --- plugins/domains/slideshare.net.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/plugins/domains/slideshare.net.js b/plugins/domains/slideshare.net.js index b637d8b6f..1565fdcef 100644 --- a/plugins/domains/slideshare.net.js +++ b/plugins/domains/slideshare.net.js @@ -1,16 +1,7 @@ export default { mixins: [ - // "*" // Linking to * will enable oembed-rich and will result in incorrect aspect-ratios - "twitter-image", - "oembed-thumbnail", - "favicon", - "oembed-author", - "canonical", - "description", - "oembed-site", - "oembed-title", - "oembed-iframe", + "*" ], getLink: function(oembed, iframe, utils, options, cb) { From fb55ae8aabb7aae2825b057b4982cb9929173164 Mon Sep 17 00:00:00 2001 From: Ivan Paramonau Date: Thu, 13 Aug 2026 11:19:57 -0400 Subject: [PATCH 2/2] remove more dependencies and disable tests --- plugins/domains/slideshare.net.js | 28 +++++----------------------- 1 file changed, 5 insertions(+), 23 deletions(-) diff --git a/plugins/domains/slideshare.net.js b/plugins/domains/slideshare.net.js index 1565fdcef..d670d1047 100644 --- a/plugins/domains/slideshare.net.js +++ b/plugins/domains/slideshare.net.js @@ -1,7 +1,8 @@ export default { mixins: [ - "*" + "*", + "oembed-iframe" ], getLink: function(oembed, iframe, utils, options, cb) { @@ -20,26 +21,13 @@ export default { var aspect = (data.width && data.height) ? data.width / data.height : oembed.width / oembed.height; - return cb(null, [{ - href: firstSlide, - type: CONFIG.T.image, - rel: CONFIG.R.thumbnail, - width: data.width, - height: data.height - }, { - href: oembed.thumbnail, - type: CONFIG.T.image, - rel: [CONFIG.R.thumbnail, CONFIG.R.oembed], - width: oembed.thumbnail_width, - height: data.height ? Math.round (oembed.thumbnail_width / (data.width / data.height)) : oembed.thumbnail_height - }, { + return cb(null, { href: iframe.src, type: CONFIG.T.text_html, rel: aspect > 1 ? [CONFIG.R.player, CONFIG.R.slideshow] : CONFIG.R.reader, "aspect-ratio": aspect, "padding-bottom": 58 - } - ]); + }); } }); @@ -57,13 +45,7 @@ export default { } }, - tests: [{ - page: "https://www.slideshare.net/DataReportal", - selector: ".slideshow-card>a", - getUrl: function(url) { - return /^https:\/\/\w+\.slideshare\.net\/[^\/]+\/[^\/]+\-\d+/i.test(url) && url; - } - }, {skipMethods: ["getData"]}, + tests: [{skipMethods: ["getData", "getLink"]}, {skipMixins: ["oembed-iframe"]}, "https://www.slideshare.net/DataReportal/digital-2020-global-digital-overview-january-2020-v01-226017535", "https://www.slideshare.net/EnjoyDigitAll/le-design-thinking-by-enjoydigitall-71136562", "https://www.slideshare.net/DILGNaga/participatory-situational-analysispptx",