Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This may have changed in the last few years, but I believe you can simply do "window.getSelection()" in your bookmarklet to access the currently selection for Firefox/WebKit browsers.


might be worth trying. however, i'm still not convinced the presented use-case would be useful rather than just cool.


Sadly you're almost certainly right. Most of the places I could see wanting to reverse-engineer the displayed HTML into Markdown are actually sites using their own hackish, inconsistently rendered output. You'd end up needing per-site tweaks and that'd kind of render the whole thing unworkable and pointless.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: