diff --git a/Open Fedi In My Instance.user.js b/Open Fedi In My Instance.user.js index a39c793..a9778ad 100644 --- a/Open Fedi In My Instance.user.js +++ b/Open Fedi In My Instance.user.js @@ -15,6 +15,10 @@ const MY_INSTANCE = 'https://pix.solarpunk.moe'; + if (document.URL.startsWith(`${MY_INSTANCE}/`)) { + return; + } + var MutationObserver = window.MutationObserver; var myObserver = new MutationObserver (mutationHandler); var obsConfig = { @@ -45,6 +49,14 @@ return; } + if (node.classList.contains('container-fluid')) { + for (let n of node.querySelectorAll('.timeline-status-component')) { + processNode(n); + } + + return; + } + if (!node.classList.contains('timeline-status-component')) { return; } @@ -86,4 +98,4 @@ dotMenu.before(externalButton); } -})(); \ No newline at end of file +})();