News for hackers. Stuff that matters.
Re:Show HN: HNRelevant – Show related HN submissions in an i... by hxugufjfjf on Sunday May 28, 2023 @10:42AM (#36104391)
Is there a specific reason that projects like these seemingly often are Chrome only. I use Firefox and I feel «left out» on a near weekly basis.
Re:Show HN: HNRelevant – Show related HN submissions in an i... by eshnil on Sunday May 28, 2023 @10:52AM (#36104487)
FF is my primary browser too, but with the user base down to 3%, it's not exactly relevant any more.
Re:Show HN: HNRelevant – Show related HN submissions in an i... by ncr100 on Sunday May 28, 2023 @11:35AM (#36104951)
"3 of 100 people" - I'm one of those three.
Re:Show HN: HNRelevant – Show related HN submissions in an i... by bjord on Sunday May 28, 2023 @11:42AM (#36105035)
I would be willing to bet that the 3% stat doesn't hold true for HN users
Re:Show HN: HNRelevant – Show related HN submissions in an i... by hxugufjfjf on Sunday May 28, 2023 @03:12PM (#36106838)
Oh … my naive ass thought it was like 50/50 between Chrome and Fx :(
Re:Show HN: HNRelevant – Show related HN submissions in an i... by rnmmrnm on Sunday May 28, 2023 @10:52AM (#36104486)
it's <200 js code lines just port it.
Re:Show HN: HNRelevant – Show related HN submissions in an i... by hxugufjfjf on Sunday May 28, 2023 @11:33AM (#36104929)
Yes, so one could either make the argument of why don’t projects like this «just» do that? Or the other way around.
Re:Show HN: HNRelevant – Show related HN submissions in an i... by imadj on Sunday May 28, 2023 @11:44AM (#36105058)
Well, speaking for myself, it's just the browser I use, I don't necessarily love it but it the standard browser with the least headache.

As for the extension, it doesn't depend on anything other than hackernews and the search api, so a port should be easy.

Re:Show HN: HNRelevant – Show related HN submissions in an i... by esafak on Sunday May 28, 2023 @12:23PM (#36105448)
How hard is it to create a cross-browser plug-in?
Re:Show HN: HNRelevant – Show related HN submissions in an i... by dingledork69 on Sunday May 28, 2023 @12:48PM (#36105691)
Trivial
Re:Show HN: HNRelevant – Show related HN submissions in an i... by arek_nawo on Sunday May 28, 2023 @03:03PM (#36106770)
As a Web Extension dev, I can say that Chrome is definitely the go-to platform for developing new extensions, as you basically target most of the market this way (incl. Chrome, Edge, Brave, etc.). Any additional browser, means ofc additional dev time and testing, some of which can be really funky, like Safari.

That said, from the two (the other one being Safari), Firefox is much easier to port the extension to and there's even webextension-polyfill that gets you >95% of the way there (most of the time).

Re:Show HN: HNRelevant – Show related HN submissions in an i... by CharlesW on Sunday May 28, 2023 @05:51PM (#36108149)
> That said, from the two (the other one being Safari), Firefox is much easier to port the extension to…

Is it? Has anyone in this thread tried this? (I have not.) https://developer.apple.com/documentation/safariservices/saf...

Re:Show HN: HNRelevant – Show related HN submissions in an i... by arek_nawo on Monday May 29, 2023 @01:32AM (#36110982)
Yeah, I have done it twice now. Safari doesn't have as good of a support as Firefox for a lot of Web Extension API, and that's on top of various compatibility issues with Safari itself. Not to mention having to deal with Xcode to just bundle the extension into Mac app-like wrapper.

To be more precise the last time I did this I had to: - Adjust cookie SameSite attribute (cookies didn't work properly otherwise) - Migrate back from MV3 to MV2 (Safari DevTools are really bad for MV3 for some reason and there were also other issues that didn't appear in MV2) - Adjust JS and CSS (some newer techniques were simply not supported in Safari)

Firefox didn't have any of those issues. On top of that, there's much more resources available online than there is for Safari - though, to be fair, it's mostly because its support for WebExtensions is newer and there aren't as many extensions for Safari. But, when you do find some resources you have to verify whether they're actually on the most recent standard - Web Extensions - since Safari supported multiple over the years, that have nothing to do with WE, and are very similarly named: Safari Extensions, Safari App Extensions, Safari Web Extensions

Re:Show HN: HNRelevant – Show related HN submissions in an i... by bjord on Monday May 29, 2023 @09:07AM (#36113582)
Safari also has random weird (read: highly annoying) things where it purports to support a given component of the WebExtensions API, and then totally doesn't. Storage.sync is a perfect example—why I should have to build my own syncing infrastructure purely to support safari (particularly given that apple always talks about wanting to protect user data)?

https://developer.apple.com/documentation/safariservices/saf...

Re:Show HN: HNRelevant – Show related HN submissions in an i... by dubeux on Sunday May 28, 2023 @06:11PM (#36108276)
There's a script available now - just installed it in FF with Greasemonkey.