I ported the Firefox Archive.today extension to Safari(apps.apple.com) |
I ported the Firefox Archive.today extension to Safari(apps.apple.com) |
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+encodeURIComponent(document.location)
javascript:location.href='https://webcache.googleusercontent.com/search?q=cache:%27+location.href;{}Personally, I have been using this variant:
javascript:location.href = '//archive.ph/newest/' + location.href.split('?')[0];I was tired of copying and pasting when I wanted to use the Archive service on HN articles, so here you go!
I’ve been using a homemade Shortcut for the same purpose. They’re great when you want a bit of control over such things. For example, expanding the url (following all redirects) before sending it to archive.ph/md/is, 12ft.io, or Reading List, etc. It’s very annoying having t.co urls in Reading List in particular.
You can edit the resulting url before opening it or copying it, and choose between archive.ph, .md, etc. Editing is useful if you want to get rid of utm_source arguments, etc.
Apple’s Shortcuts is just a hodgepodge of built in functions, the best way to learn is just to try build something like this. You’ll be searching a few times for the little function you want until you find the right name for it. As far as discoverability goes, it’s OK, gets the job done. Naming things is weird too — let’s say you make a Text block, then you can only seem to name it when you reference it elsewhere (Select Magic Variable, scroll and tap it, then highlight it and Rename from the menu).
This explains the behavior folks are commenting on here where it appears not to work.
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.
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!
Settings > Safari > Extensions > Archive Page > All Websites > Allow
javascript: (function() {(function(){var url =window.location.href; let newUrl
="https://archive.ph/submit/?url="+encodeURIComponent(url.split('?')[0]);
window.open(newUrl, "_self");})()})()There is a reason why most Safari extensions apps do not just show an icon and a label, but actually explain how to use their embedded extensions.
You can make any suggestions here: https://github.com/gnormandin/Archive-Page/issues
If shortcuts can make this process faster and require fever steps when I use them, I would like to have a shortcut for each of those two archive sites.
Anyone have good shortcut to share for either of the two archive sites?
I found some but neither of the ones I tried were quite perfect. The one for Wayback Machine navigated there but did not automatically start the save. The one for archive.is activated reader mode after archiving.
As for Reader mode, I think you just need to go to the site again, hit "aA", "Website settings", and disable "Use Reader mode automatically".
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.
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.
Regardless, with activeTab you can just inject script into the page itself through which you can open a regular popup.
chrome.scripting.executeScript({
func: () => window.open(' archive.ph' + location.href)
})
Currently the extension will suggest that it needs access to every page the user visits, occasionally opening a popup automatically if I remember correctly.For something that’s a glorified bookmarklet, that’s a lot to ask.