3 ms·
Do you know how to use this feature in, say, Vivaldi if it is even possible? I want to select text and have it appended to the URL.
by johnisgood 2y ago
Do you know how to use this feature in, say, Vivaldi if it is even possible? I want to select text and have it appended to the URL.
- mdaniel 2y agoI 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-fragment/ https://addons.mozilla.org/en-US/firefox/addon/link-to-text-... (source: https://github.com/GoogleChromeLabs/link-to-text-fragment 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://news.ycombinator.com/item?id=43336609#43375605:~:text=Vivaldi%20if%20it https://news.ycombinator.com/item?id=43336609#43375605:~:tex...> but of course Firefox hurp-derps that style link
- deleted 2y ago[deleted]
- johnisgood 2y agoI installed "link-to-text-fragment", but: https://news.ycombinator.com/reply?id=43376342&goto=threads%3Fid%3Djohnisgood%2343376342#:~:text=i%20don't%20use%20vivaldi%20in%20order%20to%20know%20what%20its%20limitations%20are%2C%20but%20as%20i%20mentioned%20i%20have%20to%20run%20with%20https%3A%2F%2Faddons.mozilla.org%2Fen-us%2Ffirefox%2Faddon%2Flink-to-text-...%20(source%3A%20https%3A%2F%2Fgithub.com%2Fgooglechromelabs%2Flink-to-text-fragment%20apache%202)%20due%20to%20ff%20itself%20not%20offering%20that%20functionality%20natively https://news.ycombinator.com/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.