diff options
Diffstat (limited to 'app/src/main/assets/js/menu.min.js')
-rw-r--r-- | app/src/main/assets/js/menu.min.js | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/app/src/main/assets/js/menu.min.js b/app/src/main/assets/js/menu.min.js index 7aa05351..0f218ea5 100644 --- a/app/src/main/assets/js/menu.min.js +++ b/app/src/main/assets/js/menu.min.js @@ -1 +1,27 @@ -var viewport=document.getElementById("viewport");var root=document.getElementById("root");var y=new MutationObserver(function(a){viewport.removeAttribute("style");root.removeAttribute("style")});y.observe(viewport,{attributes:true});y.observe(root,{attributes:true});var x=new MutationObserver(function(a){var c=document.getElementsByClassName("mSideMenu");if(c.length>0){x.disconnect();console.log("Found side menu");var b=c[0];while(root.firstChild){root.removeChild(root.firstChild)}while(b.childNodes.length){root.appendChild(b.childNodes[0])}Frost.emit(0);setTimeout(function(){y.disconnect();console.log("Unhook styler");Frost.handleHtml(document.documentElement.outerHTML)},500)}});x.observe(document.getElementById("mJewelNav"),{childList:true,subtree:true});document.getElementById("bookmarks_jewel").getElementsByTagName("a")[0].click();
\ No newline at end of file +if(null!==document.querySelector("#mJewelNav")){ +console.log("Fetching menu") +;var viewport=document.querySelector("#viewport"),root=document.querySelector("#root"),y=new MutationObserver(function(e){ +viewport.removeAttribute("style"), +root.removeAttribute("style") +}) +;y.observe(viewport,{ +attributes:!0 +}),y.observe(root,{ +attributes:!0 +}) +;var x=new MutationObserver(function(e){ +var o=document.querySelector(".mSideMenu") +;if(null!==o){ +for(x.disconnect(),console.log("Found side menu");root.firstChild;)root.removeChild(root.firstChild) +;for(;o.childNodes.length;)root.appendChild(o.childNodes[0]) +;Frost.emit(0),setTimeout(function(){ +y.disconnect(),console.log("Unhook styler"), +Frost.handleHtml(document.documentElement.outerHTML) +},500) +} +}) +;x.observe(document.querySelector("#mJewelNav"),{ +childList:!0, +subtree:!0 +}),document.querySelector("#bookmarks_jewel").querySelector("a").click() +}
\ No newline at end of file |