RE: mastodon.social/@sarahjamielew

To follow up on this, I have pushed an initial, experimental, exploratory patch to codeberg.org/basebrowserprojec

This patch removes (not just disables) many AI features from desktop Firefox including: smart windows, model chat, link previews, smart tab groups, semantic search, on device model integration (translations) etc.

1605 files changed, 98 insertions, 852297 deletions

I've tested that Firefox builds, and runs, and overall doesn't complain, but it's far from complete, hic sunt dracones etc.

Sarah Jamie Lewis@sarahjamielewis@mastodon.social

This evening I spent some time going through the latest firefox HEAD, with the idea being to catalog how many files/lines of code could be removed solely on the basis that they only exist to power the built in llm / chat / local ai stuff.

I am currently at 136000 lines of code, a number so absurd that I have forced myself to triple check it - and I'm pretty sure I'm barely half way through this patch.

The security auditor in me weeps.

en

Replying to @⁨sarahjamielewis@mastodon.social⁩

@sarahjamielewis did some calculations, to see how it relates to overall code

shallow clone of Firefox source code weights around 5.8 *giga*bytes and contains 42 544 302 (yes, fourty two millions) lines of code, excluding blank lines and comments (and sixty two millions, including)

aaaand your patch removed around 1% by LoC. Still more than I expected, honestly :neocat_googly_shocked: