top | item 34830629

Firefox Android now supports Tampermonkey

714 points| 2Gkashmiri | 3 years ago |support.mozilla.org | reply

286 comments

order
[+] benatkin|3 years ago|reply
Greasemonkey was the good one and then something happened with it and it was no longer the best choice. I'm not sure what.

The same repeated with Tampermonkey. It now has telemetry built into it, at one time w/ no privacy policy.

https://www.reddit.com/r/firefox/comments/6hs59w/tampermonke...

The good one now is Violentmonkey. Has been for some time.

Does Mozilla have an allowlist for these? If so I don't like it.

[+] jraph|3 years ago|reply
A big thing for me is that Tampermonkey is not open source.

And yes, Firefox on Android has an allowlist of "known working good" extensions, the reason given being that Firefox for Android doesn't implement everything the Desktop version implements and IIUC, want to a avoid users blaming the browser when something breaks because of it.

[+] pwdisswordfishc|3 years ago|reply
> Greasemonkey was the good one and then something happened with it and it was no longer the best choice. I'm not sure what.

?????

[+] Fnoord|3 years ago|reply
I just checked the addon in its settings. Yes, it has telemetry. No, it isn't enabled by default. Its opt-in. That's how I want such a feature implemented (e.g. Homebrew doesn't, it uses opt-out).
[+] piyush_soni|3 years ago|reply
What exactly is better in ViolentMonkey? Just want to know because I keep working with userscripts and after GreaseMonkey's collapse TamperMonkey has been my default userscript manager.
[+] fumeux_fume|3 years ago|reply
Only a small subset of extensions are allowed on mobile. If you use the nightly version of the Firefox app there's an elaborate process you can go thru to allow access to all extensions.
[+] aqfamnzc|3 years ago|reply
I agree with most of your comment, but just a quick note that whether or not a service provides a privacy policy doesn't mean they necessarily do anything to protect users' privacy. (Mostly in the sense that if they did have one, that fact wouldn't mean much on its own.)
[+] dkbrk|3 years ago|reply
I don't understand why Mozilla artificially limits what addons can be used on android.

I've been using Tampermonkey on android for years, and it worked fine, just like other addons that don't happen to have yet been blessed so that users are granted the privilege of being able to choose to install them.

For reference, to work around mozilla's artificial restrictions, you have to use nightly. Once you activate the debug menu (about firefox > tap logo 5 times) there's the option to set a "custom add-on collection". You can make a custom collection on addons.mozilla.org using a firefox account. The two fields are the last two parts of the URL on your custom collection.

Not only is this very cumbersome (especially if you want to add another addon to your collection and have that propagate to your phone), but it's only available on nightly. And nightly has a nasty habit of breaking. It's not much fun when an update causes it to crash immediately on visiting certain websites; even worse when restarting causes it to try to load the tab that just caused it to crash.

So, it ends up in a dilemma: you can either have a browser that doesn't catastrophically break every few updates; or you can have the freedom to install whatever addons you like. But not both.

And that dilemma is entirely artificial and unnecessary. Mozilla could have a process of verifying that addons work correctly on android and warn if you try to install one that isn't so verified (like how Valve has "Deck Verified" but doesn't stop you installing anything you like). But that's not what they've done, and they don't show any sign of changing their minds.

[+] hoppyhoppy2|3 years ago|reply
Just FYI you can now use a custom addon collection on Firefox Beta for Android, if you want to use a slightly less cutting-edge version. Fennec from F-Droid is another option.
[+] Manfred|3 years ago|reply
It would be good if they explained this in their documentation. But I think you summed it up in your own message:

> […] you can either have a browser that doesn't catastrophically break every few updates; or you can have the freedom to install whatever addons you like […]

I think they don't want malicious and abandoned extensions to taint the Firefox experience. Users will only see "Firefox is broken" and not realize that it's caused by the extensions they installed.

[+] razor_router|3 years ago|reply
I find it very concerning that Mozilla has such an artificial limit on what addons can be used on Android. Do you know why they have set up such a limit?
[+] proc_guts_fan|3 years ago|reply
If anyone needs a "monkey" not for web pages but for any process on your computer system, may I recommend Frida:

https://frida.re

https://github.com/frida/frida

With Frida, you write JavaScript programs and then inject them into arbitrary processes, to hook and modify and call whatever you please.

It gets a lot of use in the reverse engineering and vulnerability research communities, but has broader scope too.

For instance, I used it recently to automate the UI of a video production program on Windows, by sending window messages to the main message loop from an injected thread, and hooking into various system dialog functions to override them.

[+] 2Gkashmiri|3 years ago|reply
is this a fancy pants cheat engine?
[+] pugworthy|3 years ago|reply
I love the entire *Monkey family. I've been able to prototype so many, "And this is what our website could do if we..." things at work using it, plus create custom filters for selected online forums, etc.

My favorite at the moment is one that can strip out long signatures from posts on mgexp.com, as well as let me selectively block/hide some threads.

Also, not *Monkey script, but still running the custom HN avatar per https://news.ycombinator.com/item?id=30668137

[+] nfriedly|3 years ago|reply
It's too late to add comments to the original thread, but I put together a variation that incorporates all of the suggestions from the comments, plus a couple of tweaks of my own (run on all HN pages, add an avatar to your username in the top bar) and made it available here: https://github.com/nfriedly/hn-avatars/
[+] mg|3 years ago|reply
Personally, I prefer bookmarklets over extensions and Tampermonkey.

They work the same on Desktop, Android and iOS. So I can write my bookmarklet once and use it everywhere. Without installing anything. I also like that bookmarklets only kick in when you click on them. Although some might find that too much work, it feels natural to me. It is already in my muscle memory, to click an "Increase Fontsize" bookmarklet when I start to read through a thread on Hacker News on a mobile device, for example.

[+] piyush_soni|3 years ago|reply
The benefit you say that bookmarklets have is in fact also the biggest drawback of bookmarklets as well - that you have to manually click on them - and you can't press that button in a loop like a script can do :). Personally for me userscripts are great - as instead of using tens of extensions I use one userscript manager and write many of these scripts myself - so the trust factor is always there.
[+] jhvkjhk|3 years ago|reply
Do bookmarklets still work on iOS? I wanted to try them but I found this post:

> Apple no longer allows running JavaScript in either the Mobile Safari address bar or as a mobile Safari bookmark.

https://discussions.apple.com/thread/253547618

[+] nfriedly|3 years ago|reply
This is a good thing, but it feels like Mozilla is putting a Band-Aid over the huge gaping wound they cut in Firefox for Android when they disabled nearly all the extensions.
[+] danuker|3 years ago|reply
My guess is they are afraid they might lose Google money if they enable too much freedom.

But they have also been losing users, and without users they have no leverage.

[+] friend_and_foe|3 years ago|reply
Iceraven has had this capability forever, no big announcement required.

If you want to use Firefox on android and don't want to deal with these artificial restrictions and excuses for bad behavior just get iceraven and call it a day.

[+] 2h|3 years ago|reply
If this post title sounds weird to you, it should.

Since Android Firefox 68, you cannot install custom extensions, unless you register on AMO. Even if you wrote the extension yourself.

[+] Epskampie|3 years ago|reply
Awesome but i really really want "I don't care about cookies". Please please let us have it (without having to jump through strange hoops)
[+] fisian|3 years ago|reply
You can block many websites cookie banners by using ublock origin and enable some of the Annoyances filter lists in the settings.

I use the "AdGuard annoyances" and "easylist cookie" lists and that blocks many cookie banners.

Also, "I don't care about cookies" was recently bought by a company, which could mean bad things for the extension in the future.

[+] weberer|3 years ago|reply
Doesn't Firefox for Android already support uBlock? If so, you can just enable the Easylist Cookie filter, which is disabled by default for whatever reason.
[+] DangitBobby|3 years ago|reply
It's not perfect but uBlock Origin has some annoyances lists that help with cookie nags.
[+] bkor|3 years ago|reply
A nicer one is Consent-O-Magic
[+] xdfgh1112|3 years ago|reply
Get Fdroid and install Fennec, it can do any Firefox extension iirc.
[+] risho|3 years ago|reply
it would be nice if it could support all extensions like kiwi browser does for chromium on android.
[+] tommica|3 years ago|reply
Userscripts are such an amazing thing
[+] Helmut10001|3 years ago|reply
I use Fennec, and it allows adding any Desktop extension (idontcareaboutcookies, privacyredirect etc.).
[+] apatheticonion|3 years ago|reply
The internet is covered in poorly made websites, I really wish I could write content_scripts to execute on mobile browsers that not old revamp the web experience but also make them installable.

Mobile devices are so limited in their capabilities it sucks

[+] causi|3 years ago|reply
Yet there's still no way on Firefox Mobile to change the UserAgent.
[+] khimaros|3 years ago|reply
why aren't more people just running Fennec? it supports all plugins which are supported by desktop and is available from F-droid.
[+] genpfault|3 years ago|reply
> it supports all plugins which are supported by desktop

Without faffing around with a Mozilla login or "collections" or anything like that? Just browse AMO[1] and hit "Add to Firefox"?

[1]: https://addons.mozilla.org

[+] jeroenhd|3 years ago|reply
You can install all addons in Fennec, but getting them to work is a whole different challenge. Always worth a shot, but many addons don't work or their UI is unusable.
[+] 2h|3 years ago|reply
F-droid Fennec has the same whitelist of available extensions as regular Firefox
[+] user3939382|3 years ago|reply
One of my favorite uses for it so far is adding keyboard shortcuts to SAAS systems I use frequently. It’s easy once you get the first couple working. I guess that doesn’t help on mobile but, I’m happy Firefox is getting the boost.