From 740e817caf278de0adf4be42aa7f11d1c5d1be07 Mon Sep 17 00:00:00 2001 From: Celestial04 Date: Tue, 19 Nov 2024 23:06:00 +0100 Subject: [PATCH 1/2] Update tweetviewer.js --- scripts/tweetviewer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/tweetviewer.js b/scripts/tweetviewer.js index a6e58bd7..b0901cfd 100644 --- a/scripts/tweetviewer.js +++ b/scripts/tweetviewer.js @@ -2365,7 +2365,7 @@ class TweetViewer { openInNewTab(`https://${location.hostname}/${t.user.screen_name}/status/${t.id_str}?newtwitter=true`); }); tweetInteractMoreMenuEmbed.addEventListener('click', () => { - openInNewTab(`https://publish.${location.hostname}/?query=/${t.user.screen_name}/status/${t.id_str}&widget=Tweet`); + openInNewTab(`https://publish.${location.hostname}/?query=https://${location.hostname}/${t.user.screen_name}/status/${t.id_str}&widget=tweet`); }); if (t.user.id_str === user.id_str) { tweetInteractMoreMenuAnalytics.addEventListener('click', () => { From 8c82dcf63bd81cf9fb4bc1ee79d97d8fcf5aba72 Mon Sep 17 00:00:00 2001 From: Celestial04 Date: Tue, 19 Nov 2024 23:08:20 +0100 Subject: [PATCH 2/2] Update helpers.js --- scripts/helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/helpers.js b/scripts/helpers.js index 41a0d32b..efd35266 100644 --- a/scripts/helpers.js +++ b/scripts/helpers.js @@ -3469,7 +3469,7 @@ async function appendTweet(t, timelineContainer, options = {}) { openInNewTab(`/${t.user.screen_name}/status/${t.id_str}?newtwitter=true`); }); tweetInteractMoreMenuEmbed.addEventListener('click', () => { - openInNewTab(`https://publish.${location.hostname}/?query=/${t.user.screen_name}/status/${t.id_str}&widget=Tweet`); + openInNewTab(`https://publish.${location.hostname}/?query=https://${location.hostname}/${t.user.screen_name}/status/${t.id_str}&widget=tweet`); }); if (t.user.id_str === user.id_str) { tweetInteractMoreMenuAnalytics.addEventListener('click', () => {