News for hackers. Stuff that matters.
Re:Show HN: A Firefox extension to leave comments on any URL by tetizera on Thursday June 27, 2019 @08:05AM (#20293660)
I'd love to have this extension! Let us know if you ever pick up that extension. I do have one question though. Links on e-mails usually have "?utm_campaign=id_campaign&utm_source=nytimes" for example. Is it possible to avoid duplicates? To this day this is one of the major headaches for mods on Reddit. There's also the mobile links for the same news article.
Re:Show HN: A Firefox extension to leave comments on any URL by syx on Thursday June 27, 2019 @08:12AM (#20293701)
This was more of a kludge than a serious project, but glad I was not the only one to find this useful, will definitley continue working on it.

>Is it possible to avoid duplicates?

I thought about this as well in the past but never actually found a solution. Maybe someone here knows if there's research or an algorithm to uniquely identify the URL.

Edit: typos

Re:Show HN: A Firefox extension to leave comments on any URL by 333c on Thursday June 27, 2019 @01:29PM (#20296594)
Some pages will link to a canonical URL in the head: https://en.wikipedia.org/wiki/Canonical_link_element
Re:Show HN: A Firefox extension to leave comments on any URL by weaksauce on Thursday June 27, 2019 @11:33AM (#20295327)
Stripping out the query string probably works for 80%(maybe even more) of the sites. Maybe that by default and then an option to search for the whole url as a fallback?