Repository Analysis

yokoffing/Betterfox

Firefox user.js for optimal privacy and security. Your favorite browser, but better.

25.3 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of yokoffing/Betterfox, a JavaScript project with 10,627 GitHub stars. SynthScan v2.0 examined 4,214 lines of code across 13 source files, recording 136 pattern matches distributed across 5 syntactic categories. The overall adjusted score of 25.3 places this repository in the Moderate AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

25.3
Adjusted Score
25.3
Raw Score
100%
Time Factor
2026-07-05
Last Push
10.6K
Stars
JavaScript
Language
4.2K
Lines of Code
13
Files
136
Pattern Hits
2026-07-14
Scan Date
0.15
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 0HIGH 2MEDIUM 0LOW 134

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 136 distinct pattern matches across 5 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Over-Commented Block128 hits · 94 pts
SeverityFileLineSnippetContext
LOWFastfox.js21// [4] https://reddit.com/r/browsers/s/wvNB7UVCpxCOMMENT
LOWFastfox.js41COMMENT
LOWFastfox.js61//user_pref("content.switch.threshold", 300000); // HIDDEN; default= 750000; alt=500000COMMENT
LOWFastfox.js81// false=Tabs begin to load immediately.COMMENT
LOWFastfox.js101//user_pref("gfx.webrender.compositor", true); // DEFAULT WINDOWS macOSCOMMENT
LOWFastfox.js121// by utilizing WebGL instead of relying upon Direct2D.COMMENT
LOWFastfox.js141// Lowering this from 100 to 50 promotes "warm" functions to compiled machine codeCOMMENT
LOWFastfox.js161// Power users with many cores should LOWER this value, not raise it.COMMENT
LOWFastfox.js181// PREF: cache memory poolCOMMENT
LOWFastfox.js201// When the memory pool becomes full, the oldest data is purged. By default,COMMENT
LOWFastfox.js221//user_pref("browser.cache.check_doc_frequency", 3); // DEFAULTCOMMENT
LOWFastfox.js241// -1 = makes page load times marginally longer when a page is being loaded for the first time, whileCOMMENT
LOWFastfox.js261// -1 = Automatically decide the maximum memory to use to cache decoded images,COMMENT
LOWFastfox.js281 //user_pref("browser.sessionstore.max_entries", 10); // [HIDDEN OR REMOVED]COMMENT
LOWFastfox.js301// Disabling MSE allows videos to fully buffer, but you're limited to 720p.COMMENT
LOWFastfox.js321//user_pref("image.mem.max_decoded_image_kb", 512000); // 500MB [HIDDEN OR REMOVED?]COMMENT
LOWFastfox.js341user_pref("network.buffer.cache.size", 65535); // default=32768 (32 kb); 262144 too largeCOMMENT
LOWFastfox.js361// may provide a small speed boost when loading pages with lots of requests.COMMENT
LOWFastfox.js381COMMENT
LOWFastfox.js401// Set this to some value, e.g. 4/5 of total memory available on your system:COMMENT
LOWFastfox.js421// PREF: process countCOMMENT
LOWFastfox.js441// Web content is always isolated into its own `webIsolated` content processCOMMENT
LOWFastfox.js461// be used for sites with special isolation behavior, such as extension orCOMMENT
LOWSecurefox.js21// [3] https://www.reddit.com/r/firefox/comments/l7xetb/network_priority_for_firefoxs_enhanced_tracking/gle2mqn/?web2x&cCOMMENT
LOWSecurefox.js41//user_pref("privacy.bounceTrackingProtection.mode", 1); // [FF131+] [ETP FF133+]COMMENT
LOWSecurefox.js61//user_pref("privacy.trackingprotection.allow_list.baseline.enabled", true); // [DEFAULT: true]COMMENT
LOWSecurefox.js81// [2] https://www.youtube.com/watch?v=VE8SrClOTgwCOMMENT
LOWSecurefox.js101// [5] https://hg.mozilla.org/mozilla-central/file/tip/dom/ipc/ProcessIsolation.cpp#l53COMMENT
LOWSecurefox.js121// Alt-Svc cache, and TLS certificate cache.COMMENT
LOWSecurefox.js141// [3] https://blog.mozilla.org/security/2021/01/26/supercookie-protections/COMMENT
LOWSecurefox.js161// PREF: SameSite CookiesCOMMENT
LOWSecurefox.js181// PREF: Hyperlink Auditing (click tracking)COMMENT
LOWSecurefox.js201COMMENT
LOWSecurefox.js221// Honored by many highly ranked sites [3].COMMENT
LOWSecurefox.js241// OCSP leaks your IP and domains you visit to the CA when OCSP Stapling is not available on visited host.COMMENT
LOWSecurefox.js261COMMENT
LOWSecurefox.js281// 2 = consult CRLite and enforce both "Revoked" and "Not Revoked" results (default)COMMENT
LOWSecurefox.js301// 0=disabled, 1=allow user MiTM (such as your antivirus) (default), 2=strictCOMMENT
LOWSecurefox.js341COMMENT
LOWSecurefox.js361// i.e. it doesn't work for HSTS discrepancies (https://subdomain.preloaded-hsts.badssl.com/)COMMENT
LOWSecurefox.js381****************************************************************************/COMMENT
LOWSecurefox.js401// [1] https://bugzilla.mozilla.org/1330882COMMENT
LOWSecurefox.js421COMMENT
LOWSecurefox.js441// Firefox only saves session data when the state has changed since the last save [2].COMMENT
LOWSecurefox.js461// Favicons are stored as .ico files in profile_dir\shortcutCache.COMMENT
LOWSecurefox.js481// Firefox remembers your last choices. This will reset them when you start FirefoxCOMMENT
LOWSecurefox.js501//user_pref("privacy.cpd.offlineApps", false); // [DEFAULT]COMMENT
LOWSecurefox.js521******************************************************************************/COMMENT
LOWSecurefox.js541//user_pref("privacy.clearOnShutdown.cache", true); // [DEFAULT]COMMENT
LOWSecurefox.js561// [1] https://en.wikipedia.org/wiki/Basic_access_authenticationCOMMENT
LOWSecurefox.js581// [1] https://developer.mozilla.org/en-US/docs/Web/Performance/Speculative_loadingCOMMENT
LOWSecurefox.js601// but page contents are not downloaded until a click on the link is registered.COMMENT
LOWSecurefox.js621// PREF: DNS prefetch for HTMLAnchorElement (speculative DNS)COMMENT
LOWSecurefox.js641COMMENT
LOWSecurefox.js661// Enabling link prefetching allows Firefox to preload pages tagged as important.COMMENT
LOWSecurefox.js681// [3] https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/fetchPriorityCOMMENT
LOWSecurefox.js701COMMENT
LOWSecurefox.js721//user_pref("security.insecure_connection_text.enabled", true); // [DEFAULT FF136+]COMMENT
LOWSecurefox.js741// [1] https://reddit.com/r/firefox/comments/xkzswb/adding_firefox_search_engine_manually/COMMENT
LOWSecurefox.js761 //user_pref("browser.urlbar.suggest.quicksuggest.nonsponsored", false); // [FF95+]COMMENT
68 more matches not shown…
Cross-Language Confusion2 hits · 5 pts
SeverityFileLineSnippetContext
HIGHinstall.py37 - CMD: `pyinstaller --onefile --name install-betterfox install.py && move %cd%\\dist\\install-betterfox.exe %cd% && dSTRING
HIGHinstall.py38 - BASH: `pyinstaller --onefile --name install-betterfox install.py && && mv dist/install-betterfox.exe . && rm installSTRING
Hyper-Verbose Identifiers3 hits · 4 pts
SeverityFileLineSnippetContext
LOWinstall.py81def _get_default_firefox_version_and_root():CODE
LOWinstall.py96def _get_default_profile_folder(firefox_root):CODE
LOWinstall.py156def _get_latest_compatible_release(releases):CODE
Deep Nesting2 hits · 2 pts
SeverityFileLineSnippetContext
LOWinstall.py96CODE
LOWinstall.py124CODE
Excessive Try-Catch Wrapping1 hit · 2 pts
SeverityFileLineSnippetContext
LOWinstall.py90 except Exception:CODE