News for hackers. Stuff that matters.
Re:Show HN: Pinpointer – A Firefox extension to share links ... by yorwba on Wednesday July 18, 2018 @08:25AM (#17557686)
Shorter link that still works with your addon: https://en.wikipedia.org/wiki/Nelson_Mandela#cDpudGgtb2YtdHl...

I simply tried to find a suffix of the path that still identifies the element uniquely. Turns out that p:nth-of-type(3) is good enough already. If you want to be a bit more robust to changes on the page, you could also search for the last element with an ID in the path, i.e. #mw-content-text > div.mw-parser-output > p:nth-of-type(3).

There are no comments on this comment yet.