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

>CTRL + F "Tue. Nov. 24th 2009"

Off topic, but is there a linking service where the reader can be directed to an arbitrary location within the page? In this case we could just click on the link and it'll directly take us to that particular comment?

I'm just surprised that there's still no way for me to link someone to a particular paragraph within a Wikipedia article in the year 2014.



You can click the time of each comment to get a permalink: http://workingwithwords.blogspot.com/2004/08/gee-i-wonder-if...

Wikipedia articles have the same functionality: http://en.wikipedia.org/wiki/HTML_element#Anchor


You can link directly to the an element in a page if it has an id attribute: http://example.com/index.html#foobar will jump to the foobar element in index.html-- and foobar can be anything, a paragraph, a div, an image, etc.

http://www.w3.org/TR/html401/struct/links.html


I wouldn't recommend using it for anything that needs longevity, but this has been around for a free years:

http://marker.to/

I used to use a service called "yellow hilighter", but it died and all my links broke, so fair warning :)


Let's say you're reading the Land Rover (automobile) Wikipage and you want to share the 'Timeline' section with someone.

Here is the wiki http://en.wikipedia.org/wiki/Land_Rover

If you click this one below, you will be brought straight to the 'Timeline' section http://en.wikipedia.org/wiki/Land_Rover#Timeline

Just append your URL with the selector for a DOM Element with a unique ID. In this case, the 'Timeline' div has a unique ID of 'Timeline', so I've simply appended that to the URL.

Welcome to 2014 :)


I'm trying to link to arbitrary paragraphs i.e. paragraphs without DOM selectors.



I don't think that's technically possible.


Just needs browser support. A Chrome or Firefox extension could do.


yes, just stick XPath at the end in a "hl=q".

I did that for some reason I don't remember many years ago, but it's quite fragile. OTOH if you do it based on text content it somewhat resists better to htm changes but not to content changes. It's tricky.




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

Search: