Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Extensions? #256

Open
4 tasks done
dhananjaipai opened this issue Sep 2, 2023 · 135 comments
Open
4 tasks done

Support for Extensions? #256

dhananjaipai opened this issue Sep 2, 2023 · 135 comments
Labels
It would be nice to have it It would be nice to have it, in my opinion user report is a user report

Comments

@dhananjaipai
Copy link

Preliminary checklist

  • I have read the README
  • I have read the FAQs.
  • I have searched existing issues for my feature request. This is a new issue (NOT a duplicate) and is not related to another issue.
  • This is a feature request for the Cromite browser; not the website nor F-Droid nor anything else.

Is your feature request related to privacy?

Yes

Is there a patch available for this feature somewhere?

Not sure

Describe the solution you would like

I see that Kiwi and Yandex browsers have support for adding custom chrome extensions.
I am a noob when it comes to Android apps, mods and patches, but just wanted to know if it would be possible to have support for chrome extensions ?

Describe alternatives you have considered

Using multiple browsers

@Kirshi912
Copy link

You need to request this feature to google or chromium team instead.

@uazo
Copy link
Owner

uazo commented Sep 2, 2023

@dhananjaipai think, I'm in favour of removing extension support even on desktops!
but I'm still thinking about it a bit, including your request.

@uazo uazo added the need triage I will look into it, I promise! label Sep 2, 2023
@dhananjaipai
Copy link
Author

@dhananjaipai think, I'm in favour of removing extension support even on desktops! but I'm still thinking about it a bit, including your request.

Thank you. If extensions are not possible can you kindly evaluate a bookmarkbar support or something similar to invoke custom bookmarklets to inject some features? Currently it is a pain to type javascript:xyz since pasting on the address bar will clear the javascript bit for security I am assuming

@uazo
Copy link
Owner

uazo commented Sep 2, 2023

bookmarklets

what are they?

@Universalizer
Copy link

  1. Not all Browser's extensions respect privacy or security,

  2. Probably (Sometimes) they mess-up Browser's fingerprint uniquely.

  3. If in-case an extension has problems, they need to be bug report to extensions developers, but mistakely complain to Browser's Developer & that gets irritated & frustrated.

Do you want to de-motivate browser developers?

@dhananjaipai
Copy link
Author

bookmarklets

what are they?

https://en.m.wikipedia.org/wiki/Bookmarklet

Basically custom javascript that you can run on the page saved as bookmarks. You can basically create a bookmark with the content as "javascript:document.querySelector('video').playbackRate=4" for example and when you are on a page playing media and with slow speed you can click the bookmark and it will run the script to play it faster

@dhananjaipai
Copy link
Author

  1. Not all Browser's extensions respect privacy or security,

    1. Probably (Sometimes) they mess-up Browser's fingerprint uniquely.

    2. If in-case an extension has problems, they need to be bug report to extensions developers, but mistakely complain to Browser's Developer & that gets irritated & frustrated.

Do you want to de-motivate browser developers?

I mean, make it as a superuser feature perhaps that can be enabled with a custom flag for example.
I think it is unwise to discount a feature just because some people may not understand how to use it. 😅

@uazo
Copy link
Owner

uazo commented Sep 2, 2023

@Universalizer the possible benefit is to let others fix privacy issues for the sake of the browser. Because it is unlikely that I can do everything. But it is a personal thought, not a choice for now.

Not all Browser's extensions respect privacy or security,
Probably (Sometimes) they mess-up Browser's fingerprint uniquely.

same here, I give no warranty on any of my modifications.

If in-case an extension has problems, they need to be bug report to extensions developers,

this could be true

@Rusenche
Copy link

Rusenche commented Sep 2, 2023

@uazo > @dhananjaipai think, I'm in favour of removing extension support even on desktops!

Sounds scandalous!

If this becomes a fact, google will be happy to have followers in the destruction of the user experience.

My personal thought - if the desktop option of not being able to install extensions goes away, Cromite will lose almost all users.

@Universalizer
Copy link

@Universalizer the possible benefit is to let others fix privacy issues for the sake of the browser. Because it is unlikely that I can do everything. But it is a personal thought, not a choice for now.

Real true fact, one single person has capacity limitations of doing all things alone, it requires team work of more than three or more software developers.


Draft FAQ (Frequently Asked Questions) Important notice to the Cromite end user's, especially for Browser's extensions

Browser's extensions though supported in Desktop environment but no guarantee or warranty on third-party's extension, that completely relies at end-users due-diligence and responsibility.

Cromite developer takes no liability, or shall not be blamed for these case matters & situations.


These is just draft for faq. Any further suggestions or corrections are welcome.

@NDSTHEBEST
Copy link

@dhananjaipai think, I'm in favor of removing extension support even on desktops!
but I'm still thinking about it a bit, including your request.

Please add support for extensions. It will be very helpful. I've been searching for how to do it, but since I'm not a developer and even if I were, I couldn't do it because I do not possess the source code. So, in short, please add this to future releases, at least as an option🙏

@Universalizer
Copy link

Check all open and closed issue's section of ice,raven and ki,wi Browsers, feels pity or compassion for their developers and maintenance.

Even, i myself personally speaking, would like to have extension's support, but thinking Carl was alone, Uazo collaborating him and consistently enhancing Bromite as much as possible by Uazo.

Worry that Uazo also does not gets irritated or frustrated or get tired in the end, Also currently Bromite status that is unknown, that should never ever happen again with Uazo and Cromite (After Bromite only hopeful and trustworthy Purest 100% FOSS Browser without any proprietary libraries or codes in software package).

That's it.

Bromite or Cromite User Community can promise following,

Uazo you please add extension support to Android's Cromite, we promise you that we will not harass you for any specific/particular extension related problems of any kind. WE SWEAR.

But, how the newbie or beginners may be aware of it :- Whether any specific problem is related to upstream Chromium, or Cromite, or by any extension, it might be slightly/heavily complicated. Atleast today we can guess whether it is either of two.

These are all concerns.

@Universalizer
Copy link

Remember my words,
Generally, Speaking is easy, but to implement it, sometimes becomes hard or tough.

Same way, Promise or Swear is easy, but to implement ❓️

@DI555
Copy link

DI555 commented Oct 19, 2023

@uazo , nevertheless, imo, the best way is to make extensions support be optional, switchable by a switch!
This way will take a restart of browser, to make an extension api be active or inactive from the restart.
So, really all will be happy!

@uazo uazo added the It would be nice to have it It would be nice to have it, in my opinion label Oct 21, 2023
@Rusenche

This comment was marked as off-topic.

@Rusenche

This comment was marked as off-topic.

@uazo

This comment was marked as off-topic.

@spergware
Copy link

+1

@uazo
Copy link
Owner

uazo commented Nov 26, 2023

@9cento take a poll! it would be interesting to understand what users are interested in.

@AlbahrawyTiger
Copy link

@9cento take a poll! it would be interesting to understand what users are interested in.

+2

@uazo uazo added the user report is a user report label Dec 24, 2023
@VPaulV
Copy link

VPaulV commented Dec 28, 2023

Probably it can done in a similar way ungoogled-chrome does? Where extensions are not supported but if you want them you can install the NeverDecaf/chromium-web-store plugin?

@VPaulV
Copy link

VPaulV commented Dec 28, 2023

@foxjaw yes, you are right. My comment was regarding the desktop part

@sid44sid
Copy link

Please, let me explain, why I'd like to have extension support. In my case internal adblocker still misses some ads. But k|w| with uBlock + tampermonkey + adlist jx fix performs excellently. If internal adblocker in Cromite acts with same effectiveness, then no need in any other extensions in my case. All other features are enough to cover most expectations of users imho.

@uazo
Copy link
Owner

uazo commented Jan 17, 2024

what is k|w| ? and adlist jx fix ?

@sid44sid
Copy link

what is k|w| ? and adlist jx fix ?

Kiwi browser (sorry for strange typing). Here is script for tampermonkey: https://greasyfork.org/en/scripts/19993-ru-adlist-js-fixes
I've tried to install it in Cromite (as link and standalone file), but without success for removal annoying ads. :(

@HaleyHalcyon
Copy link

I currently depend on Userscripts, custom CSS, and Pixiv Toolkit V5 for my daily browsing to fix broken layouts or add functionality like automatically redirecting Twitter/X share links to Bluesky. I’ve been using Kiwi, but basic rendering is now broken on my phone (Android 14). I’d love an alternative that fits my (admittedly very niche) use case!

@veganomy
Copy link

@HaleyHalcyon You can give firefox Android a try. Of course it's rendering is weird compared to webview. But it has all the Mozilla extension support you ever need. You just need to accustom to the browser interface, which is a bit difficult at first. Apart from that, there's synchronisation support too, if you use firefox on desktop.

@lrq3000
Copy link

lrq3000 commented Jan 12, 2025

@HaleyHalcyon Also no tabs groups on Firefox for Android.

@veganomy
Copy link

@HaleyHalcyon Also no tabs groups on Firefox for Android.

But it has a feature called tab collections, which is kinda similar to groups. It's like a folder of links.

@lrq3000
Copy link

lrq3000 commented Jan 12, 2025

@veganomy It's not the same feature at all, not the same purpose. Tab collections save a link to the tab, not the tab itself. It's rather a bookmarks organizer. It's based on previously existing extensions that were meant to mimic the categorization folders in email clients. This is very different from tabs groups which are meant to be less permanent and more like a temporary grouping of similar tabs. For example, it's impossible to open a link in a collection, whereas in Chrome based browsers it's possible to open links into a background tab in a (new) group where the current tab is also in. This allows to quickly group together FUTURE tabs you want to explore, not only those you already have opened and explored. Tabs groups organize future browsing != bookmarks organize past browsing for future retrieval.

@veganomy
Copy link

@lrq3000 If extensions is what you prioritise, then you have to sacrifice some features in favour of it. No matter how you browse, you should clear the unused tabs, whether it's Chrome or Firefox. Also, it's not a groundbreaking necessary feature unlike extension support.

@lrq3000
Copy link

lrq3000 commented Jan 13, 2025

@veganomy Your needs are different from mine. Tabs groups are very necessary for me, whether on desktop or on mobile. Clearing unused tabs is not something I want to do and I find this extremely inefficient with my line of work (research), if I open tabs, it means they are likely including something valuable if I read it. Instead, I find sessions-based browsing a much more effective approach to organize intensive browsing but it requires extensions that do not work on Android, I may write a text someday or an extension to try to popularize this approach.

Just to give you an idea, it's not unusual I can accumulate 2000 tabs under a month on desktop, and on Android I already accumulated 1000+ tabs over about 2-3 months.

Also another reason Chrome-based Android browsers with extensions are much more powerful than Firefox for Android is that virtually all extensions can be installed. This does not mean they all work, far from it, but at least they are not gated artificially as is done on Firefox for Android. I know there is a fork that can install more extensions than the official list but it's still based on a list, so there is still a gating.

That said, I love Firefox for Android and its curated extensions ecosystem, I totally understand some prefer it and I use it as a backup browser (and prefer it over Brave), but still Chrome-based mobile browsers are by far the most flexible browsers when they support extensions.

@veganomy
Copy link

veganomy commented Jan 13, 2025

@lrq3000 Firefox is already testing tab groups feature on v133 onwards. But it's desktop exclusive. The feature could span to Android too.

This is going offtopic btw. Extensions on Chrome sounds good. But tbh, Firefox is already ahead of Chrome in terms of extension support on all platforms (with MV2), privacy, security and synchronisation through Mozilla account.
Btw, I'm not advocating for Firefox. I'm just suggesting that there is already a working alternative right now.

@lrq3000
Copy link

lrq3000 commented Jan 14, 2025

@lrq3000 Do you even try to look up for an already existing tab ? I guess duplicate tabs could've been all over your browser. You're just promoting inefficient and insecure way of browsing to others who don't.

Firefox is already testing tab groups feature on v133 onwards. But it's desktop exclusive. The feature could span to Android too.

This is going offtopic. Extensions on Chrome sounds good. But tbh, Firefox is already ahead of Chrome in terms of extension support on all platforms (with MV2), privacy, security and synchronisation through Mozilla account.
Btw, I'm not advocating for Firefox. I'm just suggesting that there is already a working alternative right now.

@veganomy This discussion has gone off-topic due to the repeated promotion of Firefox in a thread of a Chrome-based mobile browser despite users clarifying they have different needs. While it’s great that Firefox works for you, it does not meet my needs. Of the 35 extensions I use on mobile, only 11 are available for Firefox. Crucial tools like the Wayback Archive and Software Heritage Foundation extensions, which are essential for my involvement in digital archival efforts, are missing. For me, Firefox is not a viable alternative, though I am glad it suits you and others.

When Firefox for Android will support tabs groups, it will imho be a huge step forward, but I don't expect this happening anytime soon, and the problem of the manual curation of extensions being a gatekeeping mechanism will still remain by design, so the extensions ecosystem on Firefox for Android will forever remain a fraction of the one for Chrome for Android. It's great Firefox for Android does that, but it's good we have a "freer" alternative.

As for my browsing habits, I think there is a misunderstanding based on incorrect assumptions. Tabs, to me, are like books in a library. I cannot read every books the moment they are shelved, but that does not make them worthless or mean they should be discarded, just because they go "unused" for some time. A library does not just throw out unread books. Likewise, some tabs hold valuable information I plan to explore later, and they remain important even if I cannot prioritize them immediately.

I manage a large volume of information daily and have optimized my workflow for efficiency. My tabs serve as placeholders for future research, not duplicates or forgotten clutter. The suggestion that this is insecure or inefficient does not reflect my experience, and as someone with a background in computer security, I am unsure of the basis of this assumption.

Open source is all about diversity of approaches, this is how a lot of awesome, now core tools have emerged, as explorations of other ways to solve the same problem (eg, web servers). There is no single "right way" to solve problems, and I appreciate that others may work differently. I’d encourage you to consider that my workflow, while different from yours, may still be valid and effective for my needs.

@Secret-chest
Copy link

Stop trying to convince us compromising is a solution.

@uazo
Copy link
Owner

uazo commented Jan 14, 2025

this issue has become a discussion. nothing wrong with that, although I ask you to stay on topic.

I would like to know what extensions you have installed (35, really?).

@veganomy
Copy link

veganomy commented Jan 14, 2025

I did stay on topic. I brought up Firefox Android as an alternative, because IT DOES have a good extension support officially.

@lrq3000's the one who brought up the tab situation which isn't at all related to extensions topic.

Also, using 36 Chrome extensions, out of them, only 11 are cross browser compatible, makes him/her an outlier usecase for my suggestion. Most of the users use popular extensions which are cross browser compatible anyways.

@Secret-chest
Copy link

You didn't just "bring it up". You made 3 comments about it, not including the last one when they said it's not for them after each one. Also, you say his way of browsing is wrong and he shouldn't get to use extensions.

@veganomy
Copy link

veganomy commented Jan 14, 2025

You didn't just "bring it up". You made 3 comments about it, not including the last one when they said it's not for them after each one. Also, you say his way of browsing is wrong and he shouldn't get to use extensions.

Yes. I did made 3 comments. But you go read my each and every comment and I have always discussed about extensions being the core feature of firefox as a viable suggestion.

PS: Just to clarify. Whoever's imagining me as a guy with an agenda to promote firefox in place of cromite. NO. I use both on my phone. And it's just a suggestion only.

@lrq3000
Copy link

lrq3000 commented Jan 14, 2025

@uazo Below is the list of my current extensions in Kiwi and Lemur browsers. There are some redundant ones for tabs exports, as I am testing which ones I find most useful and versatile for my daily usage.

Please keep in mind I am quite an extreme example of a mobile "power user", as I work as much or more on my mobile devices than on computers. For example, I am writing most of a PhD thesis on mobile (using the incredible Typst language BTW, and markdown). I always was very interested in mobile productivity (I used the first Windows smartphones and TabletPCs - the ones that came before iPhones and iPads were even a concept), but I had to develop a robust ecosystem of mobile tools because of my disabilities, as it forces me to use mobile devices much more often than I can computers (and without a keyboard, just the phone). The only thing I cannot do nowadays with my phone is programming, but I expect this to change soon with AI and STT progress.

My current extensions list on Android Kiwi or Lemur

10 Pinned Android extensions Lemur:

Other extensions:

PS: Of course I have many more on my desktop browsers ;-) Especially for tabs management, so they don't work on mobile anyway because mobile browsers don't have access to most tabs infos such as tabs groups.

@HaleyHalcyon
Copy link

You can give firefox Android a try. Of course it's rendering is weird compared to webview. But it has all the Mozilla extension support you ever need.

@veganomy I already use Firefox, and extension support there is PALTRY! I can accept it not having Pixiv Toolkit V5 (instead of V6 that broke my workflow), but I can't accept it not having any support for userstyles or userscripts.

@PalmDevs
Copy link

Can we stop going off-topic please? I didn't subscribe to this issue to receive off-topic comments about how Firefox functions as an alternative. I subscribed to receive comments about the Cromite's extension support progress.

@veganomy
Copy link

@HaleyHalcyon Right now, Google is the biggest chromium project sponsor with large number of developers working on it. That impact is very large on Firefox's ability to bring on extension support large enough to tackle web store.
This could change in the future because Google is now forced to sell Google Chrome, which might impact their extension store too. Chromium development could still happen under big data corporates. But not at the level as of right now.

Can we stop going off-topic please?

@PalmDevs This is not offtopic. Cromite's support for extensions depend on a lot of factors. And without discussing them, it's impossible to consider decision to bring extension support to this project. @uazo could've already implemented extension support ages ago if he had will. The problem is there's no will due to lot of issues.

@spergware
Copy link

Up

@PalmDevs
Copy link

PalmDevs commented Jan 17, 2025

@veganomy

This is not offtopic.

It totally is. Want an example?

Right now, Google is the biggest chromium project sponsor with large number of developers working on it. That impact is very large on Firefox's ability to bring on extension support large enough to tackle web store.

Like how does that relate to bringing extensions to Cromite? We already know Firefox is not really a viable alternative at the moment from a few comments ago, so why do you keep discussing about Firefox?

In fact, the comment (not mine) that you were also replying to also adds nothing to the issue because a few comments above already mentions that Firefox doesn't have support for some extensions too.

I don't have a problem with discussing to convince project maintainer(s) to make a feature, but what we are discussing currently doesn't add anything to the issue. It's no problem though, I just remembered you can block people on GitHub. 👍🏼

@uazo
Copy link
Owner

uazo commented Jan 18, 2025

To return to the technical aspects of the issue :)

I took a look at https://issues.chromium.org/issues/356905053 and tried to understand the status and methodology.
It seems that google is really trying to do this to activate the extensions in android and with success.
Their process is to activate in order the components and try each test and where necessary proceed with changes.
But before 133 they don't get to the browser and, I guess, the last steps they will activate will be the webstore and the ui.
I'm interested in them getting to the browser with a good partial activation because the installation services, the “webstore_private” api, are at that level.

As a pleasant surprise, they also enable “Site Per Process” in the same way done in Bromite without any other intervention. This is good news because until now the use of that mode in Android was not officially supported because, according to the engineers, several bugs were present in android. Which at this point do not exist.

@uazo
Copy link
Owner

uazo commented Jan 18, 2025

Let me explain, it is important because, to date, I understand that only Vanadium and Cromite are the only browsers that have it active.

@veganomy
Copy link

I have predicted it way before, not because of the bug tracker. But because of Google's decision to turn ChromeOS into Android. Which makes Chrome browser on Android kinda desktopish, and it requires desktop like behaviour because the devices that run ChromeOS, are desktops. Currently, ChromeOS is based on a heavily customized Gentoo Linux.

uazo added a commit that referenced this issue Jan 20, 2025
@lrq3000
Copy link

lrq3000 commented Jan 20, 2025

Thank you very much @uazo for looking into it, very exciting if extensions could be supported in a more native way!

I did some more digging and I found several patches of past chromium for Android releases:

To me it seems like the most promising patches are the 2021 patch repo by wchen since it was likely aimed at bromite, followed by the Kiwi patch updated in 2022 with extensive documentation by an external contributor.

I don't think the flag identified by @uazo was used in these patches, but they may still be useful to see how some challenges were implemented such as how to present extensions in the UI.

@Xisrr1
Copy link

Xisrr1 commented Jan 20, 2025

@uazo You can restrict using only specific extensions to prevent security and privacy risks.
Similar to the Firefox extension list, just without the ability to install more from the website.

@Secret-chest
Copy link

That defeats the purpose of extensions. Also, we can not support the store, only crx, like Ungoogled Chromium does.

@spergware
Copy link

only crx

That will do, but please for the love of God do the thing already

@veganomy
Copy link

@lrq3000 It obviously is. Desktop Android mode should suppose to expose the extension page, install crx's as well as installation from the Web Store. But not sure how the UI is handled on smartphone interface. Maybe the patches that uazo got, are all about it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
It would be nice to have it It would be nice to have it, in my opinion user report is a user report
Projects
None yet
Development

No branches or pull requests