Live data from Hacker News

I ported the Firefox Archive.today extension to Safari

apps.apple.com

21–30 of 47 posts

Re: I ported the Firefox Archive.today extension to Safari

#21
post #20

You don't need an extension for that and allow questionable privacy settings like "access to all websites". Just use a bookmarklet (create a new bookmark e.g. in your top bar and add this code as URL): javascript:location.href='https://archive.is/?run=1&url=%27+encodeURIComponent(document.location) Other bookmarklet examples (12ft, Google Cache): javascript:location.href='https://12ft.io/proxy?q=%27+encodeURIComponen…

I've been doing this for years but missed the run=1 argument in archive.today to go directly to the latest copy instead of the list of all copies. Thank you!

archive.md/newest/ works.

Re: I ported the Firefox Archive.today extension to Safari

#23

You don't need an extension for that and allow questionable privacy settings like "access to all websites". Just use a bookmarklet (create a new bookmark e.g. in your top bar and add this code as URL): javascript:location.href='https://archive.is/?run=1&url=%27+encodeURIComponent(document.location) Other bookmarklet examples (12ft, Google Cache): javascript:location.href='https://12ft.io/proxy?q=%27+encodeURIComponen…

Shortcuts are good for this type of functionality as well, and as a bonus, can be used from within apps like Twitter via the share sheet.

Re: I ported the Firefox Archive.today extension to Safari

#24

Thank you! Just tried it at Bloomberg.com and wsj.com -- it redirected me to https://archive.ph/ and then again to https://archive.ph/ I'm on latest iOS.

Yeah, there should be two redirects. The first is searching for the URL you entered, the second should either newly cache the page, or load the cached page. Same behavior as firefox. If this is not what you are seeing, please open an issue on the github at: https://github.com/gnormandin/Archive-Page/issues So I can keep track of issues encountered. Thanks!

Issue fixed, and a new build has been submitted

Re: I ported the Firefox Archive.today extension to Safari

#27

Earlier quoted context omitted.

Thanks for the feedback, I'll work on fixing this. Alternatively, you can also open an issue here: https://github.com/gnormandin/Archive-Page/issues

New build submitted.

I don’t see any changes on the repo. The permissions in your case should just be activeTab and storage. That’s it.

You can run the extension via chrome.browserAction.onClick and it will receive the URL. You also don’t need the tabs permission just to create a tab.

Re: I ported the Firefox Archive.today extension to Safari

#29
post #26

Maybe include some more verbose instructions on the screen that displays on my iPad when I attempt to open the app. Following instructions from other posters on this thread has it working beautifully. Thanks!

Will do, thanks for the advice!

Re: I ported the Firefox Archive.today extension to Safari

#30

Earlier quoted context omitted.

New build submitted.

I don’t see any changes on the repo. The permissions in your case should just be activeTab and storage. That’s it. You can run the extension via chrome.browserAction.onClick and it will receive the URL. You also don’t need the tabs permission just to create a tab.

The issue is that if you do not set permissions in the manifest, clicking allow in the safari UI would only return a blank URI, "". The original extension in this case would also just return an error.

I've modified the manifest so that it is asking Safari for wider permissions, so that when the permission is granted by the user, the proper URL is returned.

Post reply on HN