HN2new | past | comments | ask | show | jobs | submitlogin

I don't use Vivaldi in order to know what its limitations are, but as I mentioned I have to run with https://addons.mozilla.org/en-US/firefox/addon/link-to-text-... (source: https://github.com/GoogleChromeLabs/link-to-text-fragment Apache 2) due to FF itself not offering that functionality natively

TBH, I also previously just popped open dev-tools and pasted the copied text into console.log("#:~:text="+encodeURIComponent(...)) which was annoying, for sure, but I didn't do it often enough to enrage me. I believe there's a DOM method to retrieve the selected text which would have made that much, much easier but I didn't bother looking it up

For posterity, I also recently learned that Chrome just appends the :~: onto any existing anchor, e.g. <https://hackernews.hn/item?id=43336609#43375605:~:tex...> but of course Firefox hurp-derps that style link



I installed "link-to-text-fragment", but: https://hackernews.hn/reply?id=43376342&goto=threads%... does not seem to work. :(

It only highlights once I copied link to selected text, but if I click on the link, it does not seem to work, yours did.




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

Search: