From cceab6a76e98803d1d7678528b398b0158ad2ea4 Mon Sep 17 00:00:00 2001 From: Luke Date: Tue, 6 Aug 2019 00:30:04 +0200 Subject: [PATCH] Fix issue with videos (#22); bump version to 1.11.3 --- content/content.js | 2 +- manifest.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/content/content.js b/content/content.js index 1aaf7d5..2527f4a 100644 --- a/content/content.js +++ b/content/content.js @@ -43,7 +43,7 @@ function observerCallback(mutations) { context_layer = container.closest('.uiContextualLayerPositioner'); menu_arrow = document.getElementById(context_layer.getAttribute('data-ownerid')); post = menu_arrow.closest('.userContentWrapper, .fbPhotoSnowliftContainer'); - permalink = post.querySelector('abbr').parentNode.href; + permalink = post.querySelector('abbr').parentNode.href.replace(/([^?]+)(\?.*)?/, '$1?comment_id=1'); if (!permalink) { return; } diff --git a/manifest.json b/manifest.json index 98d3d52..a96527a 100644 --- a/manifest.json +++ b/manifest.json @@ -2,7 +2,7 @@ "description": "Web Extension to save Facebook posts as images", "manifest_version": 2, "name": "Facebook Post Screenshot", - "version": "1.11.2", + "version": "1.11.3", "homepage_url": "https://github.com/hckr/fb-post-screenshot", "icons": { "72": "icons/icon.png"