Regarding the persistance across site question, basically it comes down to modifying the cookie value that gets set so the name in the name/value pair is a static, unified one. Anyhow, what this means is that you can try doing the below to achive persistance across site:
1) Do a search and replace, by changing all occurences of the word:
Code:
window.location.pathname
to:
Note the quotations surrounding the modified value that needs to be included when replacing.
2) Then, change the line:
Code:
document.cookie="folderpersist"+"="+openones
to:
Code:
document.cookie="folderpersist="+openones+";path=/"
That should work, although I haven't actually tested it.
Bookmarks