News for hackers. Stuff that matters.
Re:Firefox Android now supports tampermonkey by mg on Friday February 17, 2023 @12:15AM (#34831068)
Is that void(...code...) syntax a good way to execute bookmarks? Also, your code is not urlencoded?

I use javascript:(function(){...code...})() and urlencode the whole thing.

I maintain this bookmarklet editor to easily convert code to bookmarklets:

https://www.gibney.org/bookmarklet_editor

Re:Firefox Android now supports tampermonkey by sp332 on Friday February 17, 2023 @12:18AM (#34831076)
It's been sitting around a long time and I don't remember where I got it from. Thanks for the link though.
Re:Firefox Android now supports tampermonkey by mg on Friday February 17, 2023 @12:23AM (#34831107)
You're welcome.

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?

Re:Firefox Android now supports tampermonkey by muxator on Friday February 17, 2023 @06:23AM (#34833370)
I tried this in firefox for android and it did not work. What gets opened instead is a google search for "javascript:(function()...".

Firefox used so be super useful on Android, but since its redesign almost all its customizability has been gone. So sad.

Re:Firefox Android now supports tampermonkey by mg on Friday February 17, 2023 @01:20PM (#34838303)
I just tried it on Firefox on Android, and for me it works.

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.

Re:Firefox Android now supports tampermonkey by cookie_monsta on Friday February 17, 2023 @03:38AM (#34832309)
Nice! Bookmarked :)
Re:Firefox Android now supports tampermonkey by ckcheng on Monday February 20, 2023 @09:25PM (#34875709)
Thanks! Unfortunately, bookmarklets just doesn't seem to work on iOS... :( I tried using your bookmarklet editor to see if it helped, and the resulting bookmarklets didn't work in iOS Safari nor iOS Firefox.

oh well... Wish I had found your bookmarklet editor when I was trying to use them on Android before!

Re:Firefox Android now supports tampermonkey by ckcheng on Tuesday February 21, 2023 @03:21AM (#34878301)
Wait… it works in iOS Safari by tapping on the bookmarklet icon in the Bookmarks panel or under Favourites. Can’t get it to work in iOS Firefox tho.