https://web.archive.org/web/submit?url=%s
javascript:void(location.href='http://web.archive.org/save/'+document.location.href)
But neither of them work on mobile because it opens a new tab first before evaluating the bookmarklet.
I use javascript:(function(){...code...})() and urlencode the whole thing.
I maintain this bookmarklet editor to easily convert code to bookmarklets:
By the way, in Chrome on Android, you can't execute bookmarklets from the bookmark menu. You need to give the bookmarklet a name. Say "Upsize". Then when you are on the page where you want to increase the font size, type "up" in the url bar and click on "Upsize" in the suggestions. Might be the same in Firefox?
Firefox used so be super useful on Android, but since its redesign almost all its customizability has been gone. So sad.
In fact, it works both ways:
I can click on "bookmarks" and then on the bookmarklet, and it gets executed on the current page.
I can also start typing the bookmarklets name and then click on it in the suggestions. It then also gets executed on the current page.
oh well... Wish I had found your bookmarklet editor when I was trying to use them on Android before!
Then, when you want to execute a bookmarklet on the current page, pull down to get to the URL bar (if it is hidden) and start typing the "keyword" string into the url bar. After a few characters the "suggestions" list should show the bookmarklet entry, when it does, tap on the entry and the bookmarklet will execute on the current page.
I've not been able to find a way to "open" a list of bookmarklets to pick from, other than using keyword search via the URL bar, so this does also require remembering the "keywords" for each to be able to access them.
But mg also says that it works, so I wonder what's wrong with mine.
> Apple no longer allows running JavaScript in either the Mobile Safari address bar or as a mobile Safari bookmark.
Most browsers don't allow JavaScript in the address bar anymore.
But in bookmarks, all browsers allow it.
The nice thing about bookmarklets is that they only kick in when you activate them. And they work the same on Desktop, Android and iOS. So I can write my bookmarklet once and use it everywhere.
I maintain this bookmarklet editor, to easily turn code into a bookmarklet:
https://www.gibney.org/bookmarklet_editor
If you have not used bookmarklets before, clicking on the ? sign brings up an info page about bookmarklets and some examples.