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…
Show HN: Pinpointer – A Firefox extension to share links to page elements
21–28 of 28 posts
Re: Show HN: Pinpointer – A Firefox extension to share links to page elements
#22Earlier 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.)
Re: Show HN: Pinpointer – A Firefox extension to share links to page elements
#23I 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.
extensions.webextensions.restrictedDomains
Re: Show HN: Pinpointer – A Firefox extension to share links to page elements
#24"It requires your permission to: Access your data for all web sites" I wish Firefox had a permission along the lines of 'Access all data from pages on which I activate the extension', which is presumably all this would need.
Re: Show HN: Pinpointer – A Firefox extension to share links to page elements
#25I 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 might want to take a look at https://github.com/karanlyons/pinpoint to see if there's anything there you want to grab, especially around the selector creation: https://github.com/karanlyons/pinpoint/blob/4b2ec192c0400f26...
Re: Show HN: Pinpointer – A Firefox extension to share links to page elements
#26"It requires your permission to: Access your data for all web sites" I wish Firefox had a permission along the lines of 'Access all data from pages on which I activate the extension', which is presumably all this would need.
There is the "activeTab" permission: https://developer.mozilla.org/en-US/Add-ons/WebExtensions/ma...
EDIT: I had a look at the manifest.json[1], and it turns out that's the only permission I've requested. Not sure why Firefox says I'm asking for everything and the kitchen sink.
[1] https://github.com/Rumperuu/Pinpointer/blob/master/manifest....
Re: Show HN: Pinpointer – A Firefox extension to share links to page elements
#27I 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…
There's archive sites that do this, without a browser extension, and since it's an archive site instead of a live page, the content won't change underneath the target: http://archive.is/RUyWM#selection-253.74-253.223
Re: Show HN: Pinpointer – A Firefox extension to share links to page elements
#28Earlier quoted context omitted.
You might want to take a look at https://github.com/karanlyons/pinpoint to see if there's anything there you want to grab, especially around the selector creation: https://github.com/karanlyons/pinpoint/blob/4b2ec192c0400f26...
This is really interesting, I'm not sure how I didn't find it before. What I'd like to know is whatever happened to the CSS-selectors-as-fragment-identifiers movement and why it didn't take off. The proposal that inspired that extension[1] was written by Simon St.Laurent and Eric Mayer, so it's not like it was a fringe thing, and they co-chaired a W3C Working Group on the topic[2], but it apparently never published a…
I think this is just one of those problems that's hard to sell to people.