Live data from Hacker News

Show HN: Pinpointer – A Firefox extension to share links to page elements

addons.mozilla.org

1–10 of 28 posts

Re: Show HN: Pinpointer – A Firefox extension to share links to page elements

#2
I wanted to try making a browser extension and it seemed weird to me that there didn't seem to exist any means of linking to specific elements on a web page if they hadn't been given IDs to make a fragment identifier out of, so I made this.

You select a page element and generate a link, which you can then share. For someone without the extension, the link will work as normal and just take them to the page, but someone with the extension will have the selected element focused on and highlighted for them.

There's also a repo on GitHub (for now)[1] and I wrote about how I made it[2]. My next priorities are to make it not look like ass and to shorten the links somehow. Let me know what you think.

[1] https://github.com/Rumperuu/Pinpointer

[2] https://bengoldsworthy.net/2018/04/developing-pinpointer/

Re: Show HN: Pinpointer – A Firefox extension to share links to page elements

#3
post #2

I wanted to try making a browser extension and it seemed weird to me that there didn't seem to exist any means of linking to specific elements on a web page if they hadn't been given IDs to make a fragment identifier out of, so I made this. You select a page element and generate a link, which you can then share. For someone without the extension, the link will work as normal and just take them to the page, but someon…

You should post such a generated link here as an example, so people can immediately try it by clicking on it.

Re: Show HN: Pinpointer – A Firefox extension to share links to page elements

#5
I have installed it and it doesn't work.

In the Mozilla addons page it just says "Pinpointer error".

In this HN page, it prompts me to select and click a green button, but fails to do anything.

It's an interesting concept, keep going!

edit: Firefox 62.0b9 (32-bit) in up-to-date Ubuntu 16.04, with uMatrix and other extensions running.

Re: Show HN: Pinpointer – A Firefox extension to share links to page elements

#6
post #3
post #2

I wanted to try making a browser extension and it seemed weird to me that there didn't seem to exist any means of linking to specific elements on a web page if they hadn't been given IDs to make a fragment identifier out of, so I made this. You select a page element and generate a link, which you can then share. For someone without the extension, the link will work as normal and just take them to the page, but someon…

You should post such a generated link here as an example, so people can immediately try it by clicking on it.

Good point. https://en.wikipedia.org/wiki/Nelson_Mandela#aHRtbCA%2BIGJvZ...

(I wasn't kidding about needing to shorten those links.)

Re: Show HN: Pinpointer – A Firefox extension to share links to page elements

#8
post #5

I have installed it and it doesn't work. In the Mozilla addons page it just says " Pinpointer error ". In this HN page, it prompts me to select and click a green button, but fails to do anything. It's an interesting concept, keep going! edit: Firefox 62.0b9 (32-bit) in up-to-date Ubuntu 16.04, with uMatrix and other extensions running.

(Self-reply) It worked in the next page I tried:

https://www.metafilter.com/175389/None-Dare-Call-It-Treason#...

Re: Show HN: Pinpointer – A Firefox extension to share links to page elements

#9
post #5

I have installed it and it doesn't work. In the Mozilla addons page it just says " Pinpointer error ". In this HN page, it prompts me to select and click a green button, but fails to do anything. It's an interesting concept, keep going! edit: Firefox 62.0b9 (32-bit) in up-to-date Ubuntu 16.04, with uMatrix and other extensions running.

As far as I can tell the Mozilla addons page doesn't like addons running on it. I'll add a more explanatory error message though. I hadn't thought to test it on HN, so that's intriguing. I'll look into it, but I'd presume it's due to some sort of quirky DOM structure.

Re: Show HN: Pinpointer – A Firefox extension to share links to page elements

#10
post #6
post #3

Earlier quoted context omitted.

You should post such a generated link here as an example, so people can immediately try it by clicking on it.

Good point. https://en.wikipedia.org/wiki/Nelson_Mandela#aHRtbCA%2BIGJvZ... (I wasn't kidding about needing to shorten those links.)

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).

Post reply on HN