From 74d34e52e732f3699ad9176375bbf34c9678b37e Mon Sep 17 00:00:00 2001 From: Ruben Date: Wed, 23 Jul 2025 20:13:16 -0500 Subject: [PATCH] this bit wasn't needed --- assets/synth.download/sharkey/roundify.js | 8 -------- assets/synth.download/sharkey/roundify.min.js | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/assets/synth.download/sharkey/roundify.js b/assets/synth.download/sharkey/roundify.js index c9610ab..419f569 100644 --- a/assets/synth.download/sharkey/roundify.js +++ b/assets/synth.download/sharkey/roundify.js @@ -42,12 +42,4 @@ childList: true, subtree: true }); - - // also run immediately as a backup - roundifyLoggedOut(); - - // and once it finishes loading - if (document.readyState === 'loading') { - document.addEventListener('DOMContentLoaded', roundifyLoggedOut); - } })(); \ No newline at end of file diff --git a/assets/synth.download/sharkey/roundify.min.js b/assets/synth.download/sharkey/roundify.min.js index ae888ae..7dd19a2 100644 --- a/assets/synth.download/sharkey/roundify.min.js +++ b/assets/synth.download/sharkey/roundify.min.js @@ -1 +1 @@ -!function(){"use strict";function t(){const t=localStorage.getItem("account"),n=document.querySelector('[class*="visitor-root-"]');!t&&n&&(document.documentElement.classList.add("radius-misskey"),e.disconnect())}const e=new MutationObserver(function(e){e.forEach(function(e){("attributes"===e.type&&"class"===e.attributeName||"childList"===e.type)&&t()})});e.observe(document.documentElement,{attributes:!0,attributeFilter:["class"],childList:!0,subtree:!0}),e.observe(document.body,{childList:!0,subtree:!0}),t(),"loading"===document.readyState&&document.addEventListener("DOMContentLoaded",t)}(); \ No newline at end of file +!function(){"use strict";const t=new MutationObserver(function(e){e.forEach(function(e){("attributes"===e.type&&"class"===e.attributeName||"childList"===e.type)&&function(){const e=localStorage.getItem("account"),s=document.querySelector('[class*="visitor-root-"]');!e&&s&&(document.documentElement.classList.add("radius-misskey"),t.disconnect())}()})});t.observe(document.documentElement,{attributes:!0,attributeFilter:["class"],childList:!0,subtree:!0}),t.observe(document.body,{childList:!0,subtree:!0})}(); \ No newline at end of file