News for hackers. Stuff that matters.
Re:Teddit: a free and open-source Reddit front end focused o... by ComputerGuru on Friday December 04, 2020 @11:08PM (#25311656)
I wish I could get Safari reddit links to open in Apollo without having to copy the URL. First it's "continue in browser" to dismiss the overlay that shows up each time trying to get me to use the app, then it's "read the rest of the discussion" to go from amp trash to the actual reddit site, and now they only load like 4 comments at a time and you need to click a link to load another page each time you want to see the children to a comment.

Apollo is a breath of fresh air, but iOS rules for having a website link open in an app are extremely convoluted and require explicit hard-code dapproval from both the domain owner and app author, meaning even if you man-in-the-middle reddit.com on your intranet to provide the required headers/metafiles, you would need Apollo's author to also add reddit.com to the list of URLs the app is capable of intercepting. Yuck.

Re:Teddit: a free and open-source Reddit front end focused o... by floatingatoll on Friday December 04, 2020 @11:59PM (#25311903)
If tapping Share -> Apollo isn't ideal for you, there's always the web extension route. You can hack the Sea Creator sample code extension's `content.js` file to replace https://*.reddit.com/ with x-whatever-apollo-url-prefix-is:path/to/reddit/comment if you're serious about doing this in iOS Safari:

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

That's using their modern extension model, so you could compile it onto your device yourself for testing. The WWDC talk is here: https://developer.apple.com/videos/play/wwdc2020/10665/

It might be possible to ask Apollo to include this, by providing something like the above comments as a feature request. I'm not sure what Apple would think during app review, and Apollo might not be willing to risk it.

Re:Teddit: a free and open-source Reddit front end focused o... by ComputerGuru on Saturday December 05, 2020 @02:19PM (#25317436)
Thanks, I’m going to give this a try.
Re:Teddit: a free and open-source Reddit front end focused o... by codetheweb on Friday December 04, 2020 @11:29PM (#25311755)
Re:Teddit: a free and open-source Reddit front end focused o... by ComputerGuru on Saturday December 05, 2020 @02:17PM (#25317412)
Apollo already has a share target that opens Reddit links in Apollo (and can also detect copied Reddit links when you launch Apollo). I just purchased Opener because I want it to automatically launch Apollo when I click a Reddit (AMP) link in Google, but it can’t do that.
Re:Teddit: a free and open-source Reddit front end focused o... by firloop on Saturday December 05, 2020 @02:49AM (#25312701)
Ditto, use opener for exactly this.
Re:Teddit: a free and open-source Reddit front end focused o... by DenseComet on Friday December 04, 2020 @11:59PM (#25311899)
If you are on reddit.com, click the share icon, and there will be a "open in Apollo" option. If you end up on an AMP page, you have to click the share icon in the gray bar up top next to the reddit.com header, and there will be an "open in Apollo" option.
Re:Teddit: a free and open-source Reddit front end focused o... by IgorPartola on Saturday December 05, 2020 @12:32AM (#25312059)
Switch to DuckDuckGo and don’t get AMP pages again. You can also use !g at the start of your search to try Google’s results. Search quality is good and I only check Google occasionally when I know I’ve found the answer that way before but it’s not one of the top results on DDG. I haven’t measured but I think this saves me time.
Re:Teddit: a free and open-source Reddit front end focused o... by ComputerGuru on Saturday December 05, 2020 @02:19PM (#25317432)
I used DDG for years but switched to Google and StartPage because DDG just doesn’t work well for the types of searches I tend to perform. I found myself using !g for everything.
Re:Teddit: a free and open-source Reddit front end focused o... by ComputerGuru on Saturday December 05, 2020 @02:15PM (#25317385)
Yeah, but it’s always via AMP and the double dance to get the share action to be available and then open in Apollo is too much friction.