Hacker News new | past | comments | ask | show | jobs | submit login

How difficult would it be to create a bookmarklet or chrome extensions to save the current page you're on to Archive.org?

Bookmarklet (thanks to sp332):

javascript:void(open('//web.archive.org/save/'+encodeURI(document.location)))




Heck, the page has it half-written in the code for the "Save page now" button :)

  document.location.href='//web.archive.org/save/'+$('#web_save_url').val();


Sir, not all of us our javascript/HTML5 people. I do mostly operations, and can barely drag myself through Javascript until I get the chance to take some vacation time to concentrate on learning the web side (JS/HTML5/etc). I admit that I don't know what I'm doing sometimes.

Does this look right?

javascript:void(open('//web.archive.org/save/'+encodeURI(document.location)))

I hacked it together from what you posted and what my archive.is bookmarklet specifies: javascript:void(open('http://archive.is/?run=1&url='+encodeURIComponent(document.l...)

EDIT: I can confirm that the bookmarklet I provided above does work. sp332, thanks for your help.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: