3 ms·
I run a personal wiki (that gets me version control) that I've written a bookmarklet for. It asks for the page to place the entry on (default is Bookmark), loc
by AstroJetson 10y ago
I run a personal wiki (that gets me version control) that I've written a bookmarklet for. It asks for the page to place the entry on (default is Bookmark), location on the page (top is default for Bookmark, bottom is default for others) and the entry (default is the title of the page I'm on). It then makes an entry on the page as a bullet entry so I can tell that it's a bookmark.
This allows me to quickly bookmark items and have some level of order to them as I'm saving them away.
- patrickdavey 10y agoI 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"));
- shshhdhs 10y agoReally cool! What software do you use for this?
- nthcolumn 10y agoHe uses git to keep a static web site of his bookmarks. He just uses his web browser to view the index.html file.