3 ms·
I must look into bookmarklets. They can write to disk then? I also use a wiki synced in dropbox. I wrote a hacky Android app that links into all the sharing di
by patrickdavey 10y ago
I must look into bookmarklets. They can write to disk then?
I also use a wiki synced in dropbox. I wrote a hacky Android app that links into all the sharing dialogs so I can share a link into my wiki super easily. But I like the idea of both the shell command talked about in a different comment, and your bookmarklet.
One wiki to rule them all, and in the darkness find them ;)
- ChoGGi 10y agoA bookmarklet is just javascript running under the website instance (pretty sure they can't write to disk). They are useful for manipulating websites. kinda like tampermonkey, but they only run when you click them. Add a bookmark with javascript:alert('hello'); Though it's usually best to keep an expanded version elsewhere and copy it over when you update it (else it'll be stored as a one liner).
- patrickdavey 10y agoRight, that's what I thought.. I'd just misunderstood that the bookmarklet was writing somewhere. I might just write a bookmarklet that does a POST to somewhere that'll write to a Dropbox backed wiki page... I'd just like to have everything in one place..
- AstroJetson 10y agoThe bookmarklet does a post to the wiki in the same way that a user would edit the page. The new info is either at the beginning (top) or at the end (bottom) of the page text. javascript:%20void(ppage=prompt("Page%20?","Bookmark"));%20void(t=prompt("comment%20?",document.title));if%20(ppage=="Bookmark"){pp="top"}%20else%20{pp="bottom"};%20void(w=prompt("top,bottom?",pp));%20void(x="http://mywkiki.com/updater?page="+ppage+"&text="+escape("*%20["%20+%20t%20+%20"|"%20+%20location.href%20+%20"]")%20+"&action="+w);%20void(window.open(x,"Bookmark","height=400,width=640,scrollbars,resizable"));