From 83882b5f799341e8b04f1e89f4f44690b11016eb Mon Sep 17 00:00:00 2001 From: idotj Date: Sat, 28 Jan 2023 19:24:53 +0100 Subject: [PATCH] Fix id selector --- src/mastodon-timeline.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mastodon-timeline.js b/src/mastodon-timeline.js index 76476ff..2fda3c5 100644 --- a/src/mastodon-timeline.js +++ b/src/mastodon-timeline.js @@ -106,7 +106,7 @@ MastodonApi.prototype.getToots = function () { } // Add target="_blank" to all hashtags - let allHashtags = document.querySelectorAll("#mt-timeline .hashtag"); + let allHashtags = document.querySelectorAll("#mt-body .hashtag"); for (let j = 0; j < allHashtags.length; j++) { allHashtags[j].target = "_blank"; allHashtags[j].rel = "tag nofollow noopener noreferrer";