714 points · by 2Gkashmiri · 3y ago · 286 comments
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.
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.
I know my addon works fine on mobile, but they provide no means of specifying that*. I tried to email them for it to become "recommended" but never heard back.
The fact that they allow tampermonkey which allows any kind of script just adds insult to the injury.
* when uploading a new version, it does ask to specify which Firefox desktop/android versions are supported, but this existed before the new Firefox and doesn't do anything.
(What _really_ showed me Mozilla is going crazy is when they fired sunfishcode (IIRC) and the Servo team! Both were essential to their success. It makes little sense.)
PS: Meanwhile I do not understand why is Ghostery included in that tinny allowed addons list (and now Tampermonkey).
With an already low (and diminishing) market share, it's just a matter of time before Google cuts their search engine deal with them, then poof they're gone!
It never did though? In my recollection the old version had an Android-only extensions API, and only a few extensions ever supported it. At least now, in theory, any extension can run on Android, which is great.
Even do I would like there were more addons to choose from as default I can understand Mozillas choice here. And that is that most addons are not design for android and they would not work or give a very bad UX. So for many non tech savvy standard users, that just would be frustrated and blame Firefox, this decision can make sense to select god and popular addons they know works well.
But it would be great if more addons could be added ofcourse, and that Mozilla could have some design guidelines for new addons that they should work for both desktop and mobile (where it make sense). And mark in the addon store which addons that are design for both. Or maybe have a simple setting in Firefox for android that is for advanced users, there they could add any addon, but first they have to check a box that they understand that the addon may not work correctly on a smartphone.
And they wonder why their market share plummets the way it does, making such extremely user hostile decisions like that.
How does that even work? I assumed that Firefox extensions were implemented in frontend web technologies (JavaScript, CSS, etc.)? Do they use WebAssembly or something, or is it just obfuscated to the point that trying to read it isn't worthwhile?
Excerpt from point 4
> 4. NON-ALLOWABLE USES OF TAMPERMONKEY
> You are strictly prohibited from, and agree that you will not, adapt, edit, change, modify, transform, publish, republish, distribute, or redistribute Tampermonkey or any elements, portions, or parts thereof, including without limitation, to any elements, portions, or parts of Tampermonkey software (in any form or media) without the Company’s prior written consent. [...]
If you have a public repository with your code on GitHub, everyone can see the code. But they do not have the right to use the same code in a commercial manner, without you specifying a license for your code, that says they can.
One of the bigger reasons to use Fennec instead (the old Firefox Android browser, still maintained as a community fork) for me has been the fact that you can also load in the XPI files yourself, which is needed for a few FOSS extensions that aren't submitted to the Firefox Add-On Store due to one reason or another.
How is this ever cool, Mozilla?
https://github.com/Tampermonkey/tampermonkey/issues/1545#iss...
?
Do you use the FFupdater app?
(Iceraven is a fork of Firefox for Android with way more extensions enabled and several other annoyances fixed.)
I just installed it and then added https://greasyfork.org/en/scripts/460206-hn-avatars - it works perfectly!
Similar to Kiwi Browser with Chromium.
?????
And it's more "cleaner" as that you can clearly see each scripts you loaded in devtool and debug them, but and I think TM is catching up in this regard.
Outside that, VM is totally open source, development seems to be much quicker (with the drawback of slightly less stability, I'd admit), devs are more responsive.
Tampermonkey supports @connect [1] which lets you take an action whenever a script connects to a domain that isn't listed in its meta fields. Tampermonkey also warns you whenever a script modifies its @include/@match/@connect fiels with an update.
[1]: https://www.tampermonkey.net/documentation.php?locale=en#met...
It was a bit (nice) surprised for me to see many sites is really usable in noscript-mode.
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.
> […] 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.
In the days of XUL extensions, it was for users who installed a lot of extensions, but that hasn't been a problem for s long time.
So I think this excuse is BS to be honest.
Recommended extensions, those that are currently available are vetted by Mozilla staff, not only for safety, but for utility and alignment with Mozilla's goals. These require no warnings or disclaimers.
Community approved extensions would be on AMO and approved by staff-selected community members for safety and policy compliance. No warnings, but a link/checkbox/toggle at the bottom of the extensions page.
All of AMO - this should need a toggle to turn on, and a warning that extensions have not been tested and could be unstable or malicious with a second checkbox to acknowledge.
Local install - this should be buried in the settings and called something like "I am an extension developer". Turning it on should pop up an additional warning about other peoples' code being dangerous. Actually installing an extension should require separate use of a file manager or command line, and then enabling it inside the Firefox UI.
The current approach reminds me of Apple's app store, except it's much harder to get on the recommended list than to get an iOS app approved.
All of which is why I use Kiwi Browser.
Let extensions claim whether they work on mobile or not, and open the flood gates.
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.
There’s a few extra steps in allowing Frida to work on macOS so leaving that here in case others might be interested in how to do it: https://alinpanaitiu.com/blog/turn-off-macbook-display-clams...
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
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.
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.
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.
I use javascript:(function(){...code...})() and urlencode the whole thing.
I maintain this bookmarklet editor to easily convert code to bookmarklets:
oh well... Wish I had found your bookmarklet editor when I was trying to use them on Android before!
> Apple no longer allows running JavaScript in either the Mobile Safari address bar or as a mobile Safari bookmark.
Edit: And without giving excessive permissions to an extension.
But they have also been losing users, and without users they have no leverage.
Many addons plain don't work. The mobile browser doesn't have the UI these addons rely on and maybe there's some API coverage missing.
I considered this a fair reason when the rewrite was released, you could still use the old Firefox for a while. But then time passed and nothing changed.
It's clear the Fenix devs don't have the capacity or the interest to maintain addon support.
There are many silly things about the browser rewrite. For instance, you can't enter an IPv6 address and navigate to it (i.e. http://[::1]/). Firefox will always Google it. You can click a link from another app and the page will load just fine, but the address bar just doesn't understand those addresses. Then there's the fact about:config is disabled in stable versions of Firefox. Or the fact that enabling user-installed certificate authorities requires you to go into debug settings.
I don't think Mozilla has a clear idea what it wants with their browser, it feels so unfinished in so many ways.
Even the old Fennec code base never fully supported all bits of the Webextension API, and yet there were no restrictions on add-on installation. Besides in any case it would have been up to add-on developers to decide whether they could sensibly get their add-on to work on Android (and therefore mark it as officially compatible with Android on AMO), or whether some crucial API was missing (or they simply didn't feel like re-designing the UI with small screens in mind) and therefore leave it as officially desktop-only.
Simple page scripts don't require any APIs (and especially no UI!) beyond basic Webextension support at all, and yet e.g. the video-background-play-fix add-on was only whitelisted after comparatively ages and much user complaining.
And even before Webextensions, when writing an Android add-on required quite a bit more separate code that couldn't directly be re-used from a desktop add-on (due to the UI and e.g. tab management being handled differently between Desktop Firefox and Fennec), AMO still had much more Android add-ons available than the current measly 22 add-ons that can officially be installed.
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.
https://addons.mozilla.org/en-US/firefox/collections/1620123...
so if you wrote yourself, too bad
And an additional shout out for FF Updater, which can keep Iceraven up to date - https://github.com/Tobi823/ffupdater
"Note that Iceraven Browser includes some unstable code written by Mozilla, with our own added modifications on top, all shipped with the stable version of GeckoView engine."
I wouldn't use iceraven if security was a priority.
Fennec on the other hand is much closer to FF , quoting their page :
https://f-droid.org/packages/org.mozilla.fennec_fdroid/
"Fennec F-Droid is based on the latest Firefox release (codenamed Fenix).
It has proprietary bits and telemetry removed, but still connects to
various Mozilla and Google services that can track users."
Stability and security is not a priority though. Updates are slow.
I use it primarily for compatibility with my favorite add-ons not available on FF Android: I don't care about cookies, Cookie AutoDelete, Translate Web Pages, etc.
Mull is another FF Android fork may be worth taking a look at.
Since Android Firefox 68, you cannot install custom extensions, unless you register on AMO. Even if you wrote the extension yourself.
The "Add to Firefox" button on this page is disabled for me: https://addons.mozilla.org/en-US/firefox/addon/tampermonkey/
I am on 110.0.1 from Google Play.
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.
https://www.i-dont-care-about-cookies.eu/whats-new/acquisiti...
Everyone in the world is an unknown internet rando.
It's unfortunate that both being able to install any addon and access about:config on mobile isn't just some checkbox away or at least more accessible without having to install Nightly. A few years ago both were available in the regular version.
One alternative is the F-Droid Fennec fork, which is said to enable both out of the box[2].
[1] https://blog.mozilla.org/addons/2020/09/29/expanded-extensio...
[2] https://reddit.com/r/firefox/comments/wu4g0s/mozilla_firefox...
About:config is there, but the absurd whitelist on extensions is still there. I cannot confirm what the reddit thread says.
https://connect.mozilla.org/t5/ideas/on-firefox-mobile-make-...
AFAIK fennec is the code name for mobile firefox when mozilla had the very good android app that supported extensions, about:config and sane tab/bookmark management, and fenix is when mozilla ended fennec and replaced it with the much worse and clunky android app around 2020 that's still the only official one today, right?
[1]: https://www.reddit.com/r/firefox/comments/ih9vmb/firefox_for_android_fenix_79_release_fennec_is/
[2]: https://f-droid.org/packages/org.mozilla.fennec_fdroid/
[3]: https://gitlab.com/fdroid/fdroiddata/-/commit/0861f91fd39e56a13a7664e588fcf53860e0d7baIn the description on the F-Droid page it says "Fennec F-Droid is based on the latest Firefox release (codenamed Fenix).".
(It also supports custom lists like Fennec and FF Nightly.)
[1]: https://addons.mozilla.org/en-US/firefox/collections/1693474...
Never used Tampermonkey before.
I don't understand. Is there a video showing how to do this?
Mobile devices are so limited in their capabilities it sucks
Die Datenschutzrichtlinien finden Sie hier [0].
I would have expected a bit more effort in giving proper access to the privacy policies, after all, it being closed source and having the ability to view/modify any page.
Without faffing around with a Mozilla login or "collections" or anything like that? Just browse AMO[1] and hit "Add to Firefox"?
https://raw.githubusercontent.com/DandelionSprout/adfilt/master/ClearURLs%20for%20uBo/clear_urls_uboified.txthttps://connect.mozilla.org/t5/ideas/on-firefox-mobile-make-...
Mozilla to-date refuses to build a one button switch to disable all telemetry [0] and there's calls to telemetry domains such as location.services.mozilla.com you cannot stop on some of their products like Firefox Focus (ironic for a privacy product).
[0] https://support.mozilla.org/en-US/kb/domains-allow-firefox