diff options
author | Allan Wang <me@allanwang.ca> | 2017-06-13 17:07:09 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2017-06-13 17:07:09 -0700 |
commit | 0ac9d2181536b79a6057c3b526f32a1cc8ac4704 (patch) | |
tree | b561acf7fc94a79e8a48b548489e0f544d402b8c /app/src/main/assets/js/menu.min.js | |
parent | e4377fed20ce1e3f4a0b236271eecdb1fe573b7a (diff) | |
download | frost-0ac9d2181536b79a6057c3b526f32a1cc8ac4704.tar.gz frost-0ac9d2181536b79a6057c3b526f32a1cc8ac4704.tar.bz2 frost-0ac9d2181536b79a6057c3b526f32a1cc8ac4704.zip |
Created working workaround for menu item
Diffstat (limited to 'app/src/main/assets/js/menu.min.js')
-rw-r--r-- | app/src/main/assets/js/menu.min.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/assets/js/menu.min.js b/app/src/main/assets/js/menu.min.js index 6943e2a5..7aa05351 100644 --- a/app/src/main/assets/js/menu.min.js +++ b/app/src/main/assets/js/menu.min.js @@ -1 +1 @@ -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){if(document.getElementsByClassName("mSideMenu").length){x.disconnect();console.log("Found side menu");var b=document.getElementsByClassName("mSideMenu")[0];while(root.firstChild){root.removeChild(root.firstChild)}while(b.childNodes.length){root.appendChild(b.childNodes[0])}setTimeout(function(){y.disconnect();console.log("Unhook styler")},500)}});x.observe(document.getElementById("mJewelNav"),{childList:true,subtree:true});document.getElementById("bookmarks_jewel").getElementsByTagName("a")[0].click();
\ No newline at end of file +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 |