This commit is contained in:
parent
782abc7bb9
commit
74d34e52e7
2 changed files with 1 additions and 9 deletions
|
|
@ -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);
|
||||
}
|
||||
})();
|
||||
|
|
@ -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)}();
|
||||
!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})}();
|
||||
Loading…
Add table
Add a link
Reference in a new issue