Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OtsoBear/chrome2moz
/ functions
Functions
288 in github.com/OtsoBear/chrome2moz
⨍
Functions
288
◇
Types & classes
77
↓ 10 callers
Function
convert_extension
Main entry point for converting a Chrome extension to Firefox
src/lib.rs:33
↓ 8 callers
Function
replace_chrome_urls
Replace all chrome:// URLs with their Firefox equivalents in the given text
src/utils/url_replacer.rs:38
↓ 8 callers
Function
showError
(message)
web/app.js:719
↓ 8 callers
Function
validate_with_linter
Run addons-linter on converted extension
tests/integration_tests.rs:21
↓ 8 callers
Method
with_suggestion
(mut self, suggestion: impl Into<String>)
src/models/incompatibility.rs:66
↓ 7 callers
Method
auto_fixable
(mut self)
src/models/incompatibility.rs:71
↓ 7 callers
Function
escapeHtml
(text)
web/app.js:550
↓ 6 callers
Method
default
()
src/transformer/mod.rs:110
↓ 6 callers
Method
get_file_content
Get file content as string (for text files)
src/models/extension.rs:92
↓ 6 callers
Function
normalize_shortcut
Normalize a keyboard shortcut to a standard format for comparison
src/scripts/check_keyboard_shortcuts.rs:623
↓ 5 callers
Function
analyze_extension
Analyze an extension for Chrome-to-Firefox incompatibilities This analyzer detects: - Manifest differences (service worker, permissions, Firefox ID)
src/analyzer/mod.rs:25
↓ 5 callers
Function
analyze_javascript
Analyze JavaScript code for Chrome API usage
src/parser/javascript.rs:55
↓ 5 callers
Method
get_javascript_files
Get all JavaScript files in the extension
src/models/extension.rs:78
↓ 5 callers
Function
hideAllSections
()
web/app.js:693
↓ 5 callers
Function
parse_manifest
Parse manifest.json from bytes
src/parser/manifest.rs:8
↓ 5 callers
Method
transform
Simple pass-through with importScripts() removal and Firefox self-uninstall fix
src/transformer/javascript.rs:63
↓ 4 callers
Method
determine_strategy
Determine the conversion strategy based on document analysis
src/transformer/offscreen_converter.rs:23
↓ 4 callers
Method
extract_string_value
(&self, code: &str, key: &str)
src/analyzer/declarative_content.rs:91
↓ 3 callers
Function
generate_report
(result: &ConversionResult)
src/report/mod.rs:8
↓ 3 callers
Function
load_extension
Load extension from file or directory
src/packager/mod.rs:11
↓ 3 callers
Function
load_extension_from_bytes
Load extension from raw ZIP bytes
src/wasm.rs:180
↓ 3 callers
Function
parse_manifest_from_str
Parse manifest.json from string
src/parser/manifest.rs:33
↓ 3 callers
Function
run_with_project_path
Run the keyboard shortcut conflict checker with a specific project path
src/scripts/check_keyboard_shortcuts.rs:68
↓ 3 callers
Method
to_match_pattern
(&self)
src/models/chrome_only.rs:156
↓ 2 callers
Method
add_firefox_settings
(&self, manifest: &mut Manifest)
src/transformer/manifest.rs:52
↓ 2 callers
Method
add_incompatibility
(&mut self, incompatibility: Incompatibility)
src/models/conversion.rs:129
↓ 2 callers
Method
add_warning
(&mut self, message: impl Into<String>, location: Option<String>)
src/models/conversion.rs:133
↓ 2 callers
Function
analyze_javascript_apis
(content: &str, path: &PathBuf)
src/analyzer/api.rs:7
↓ 2 callers
Function
analyze_manifest
(manifest: &Manifest)
src/analyzer/manifest.rs:8
↓ 2 callers
Function
apply_default_decisions
(mut context: ConversionContext)
src/lib.rs:108
↓ 2 callers
Function
check_extension_shortcuts
Check a Chrome extension's keyboard shortcuts against Firefox shortcuts
src/scripts/check_keyboard_shortcuts.rs:680
↓ 2 callers
Function
clean_description
Clean up description text by removing RST markup and fixing formatting
src/scripts/check_keyboard_shortcuts.rs:596
↓ 2 callers
Method
convert
Convert declarativeContent rules to content scripts + messaging
src/transformer/declarative_content_converter.rs:17
↓ 2 callers
Method
convert_canvas_to_worker
Convert canvas operations to Web Worker
src/transformer/offscreen_converter.rs:81
↓ 2 callers
Function
convert_extension_zip_with_options
( zip_data: &[u8], shortcut_replacements: Option<HashMap<String, String>>, )
src/wasm.rs:44
↓ 2 callers
Function
create_declarative_net_request_stub
()
src/transformer/shims.rs:308
↓ 2 callers
Function
create_execute_script_compat
Create executeScript parameter fix via runtime interception Fixes the 'function' → 'func' parameter difference between Chrome and Firefox
src/transformer/shims.rs:162
↓ 2 callers
Function
create_sidepanel_compat
()
src/transformer/shims.rs:224
↓ 2 callers
Function
create_storage_session_compat
()
src/transformer/shims.rs:45
↓ 2 callers
Function
create_zip_from_directory
(source_dir: &Path, zip_path: &Path)
src/packager/builder.rs:23
↓ 2 callers
Function
extract_shortcuts_from_manifest
Extract keyboard shortcuts from a manifest.json file
src/scripts/check_keyboard_shortcuts.rs:818
↓ 2 callers
Method
extract_target_urls
(&self, analysis: &DocumentAnalysis)
src/transformer/offscreen_converter.rs:391
↓ 2 callers
Function
fetch_firefox_devtools_shortcuts
Fetch and parse Firefox DevTools keyboard shortcuts from RST documentation
src/scripts/check_keyboard_shortcuts.rs:340
↓ 2 callers
Function
fetch_firefox_support_shortcuts
Fetch and parse Firefox keyboard shortcuts from support page HTML
src/scripts/check_keyboard_shortcuts.rs:358
↓ 2 callers
Function
find_manifest_files
Find all manifest.json files in a directory tree
src/scripts/check_keyboard_shortcuts.rs:784
↓ 2 callers
Method
generate_stub
Generate a stub for chrome.tabGroups that prevents crashes
src/transformer/tab_groups.rs:16
↓ 2 callers
Function
get_firefox_shortcuts
Firefox shortcuts database (commonly used shortcuts across all platforms)
src/analyzer/keyboard_shortcuts.rs:24
↓ 2 callers
Method
get_info
Get info for a specific API (finds best prefix match)
src/models/chrome_api_data.rs:90
↓ 2 callers
Function
is_chrome_only_api
(api_name: &str)
src/parser/javascript.rs:97
↓ 2 callers
Function
is_supported
(entry: &Value)
src/scripts/fetch_chrome_only_apis.rs:379
↓ 2 callers
Function
load_from_directory
Load extension from directory
src/packager/extractor.rs:13
↓ 2 callers
Function
matches_known_chrome_only
(chrome_path: &str)
src/scripts/fetch_chrome_only_apis.rs:340
↓ 2 callers
Method
name
(&self)
src/models/chrome_only.rs:71
↓ 2 callers
Function
processFile
(file)
web/app.js:92
↓ 2 callers
Function
prompt_for_extension_path
Prompt user to select an extension path
src/cli/interactive.rs:37
↓ 2 callers
Function
renderCollapsibleSection
(title, issues, isExpanded = true)
web/app.js:317
↓ 2 callers
Function
run
()
src/scripts/fetch_chrome_only_apis.rs:35
↓ 2 callers
Function
showProcessing
(message)
web/app.js:701
↓ 2 callers
Method
transform
(&self, manifest: &Manifest, source: Option<&Extension>)
src/transformer/manifest.rs:22
↓ 2 callers
Function
transform_extension
Main transformation entry point (simplified pass-through)
src/transformer/mod.rs:24
↓ 1 callers
Function
analyze_extension_zip
(zip_data: &[u8])
src/wasm.rs:134
↓ 1 callers
Function
analyze_keyboard_shortcuts
(zip_data: &[u8])
src/wasm.rs:119
↓ 1 callers
Method
analyze_offscreen_document
Analyze an offscreen document to determine conversion strategy
src/analyzer/offscreen.rs:49
↓ 1 callers
Method
analyze_script_content
(&self, script: &str, analysis: &mut DocumentAnalysis)
src/analyzer/offscreen.rs:99
↓ 1 callers
Function
analyze_shortcuts
Analyze keyboard shortcuts for conflicts with Firefox
src/analyzer/keyboard_shortcuts.rs:239
↓ 1 callers
Method
analyze_usage
Analyze JavaScript code for declarativeContent usage
src/analyzer/declarative_content.rs:15
↓ 1 callers
Function
apply_shortcut_replacements
( context: &mut crate::models::ConversionContext, replacements: HashMap<String, String>, )
src/wasm.rs:86
↓ 1 callers
Function
build_complete_directory
Build directory with all original files plus modifications
src/packager/builder.rs:102
↓ 1 callers
Function
build_complete_extension
Build Firefox extension package with all files
src/packager/mod.rs:23
↓ 1 callers
Function
build_directory
Build directory structure (for development) This function is now used internally by build_xpi
src/packager/builder.rs:73
↓ 1 callers
Function
build_xpi
Build Firefox XPI package
src/packager/builder.rs:13
↓ 1 callers
Method
calculate_complexity
(&self, analysis: &DocumentAnalysis)
src/analyzer/offscreen.rs:204
↓ 1 callers
Method
can_auto_determine_urls
(&self, analysis: &DocumentAnalysis)
src/transformer/offscreen_converter.rs:384
↓ 1 callers
Function
check_addons_linter
Helper to check if addons-linter is installed
tests/integration_tests.rs:13
↓ 1 callers
Function
collect_chrome_only_apis
(filename: &str, data: &Value, results: &mut Vec<ChromeOnlyApi>)
src/scripts/fetch_chrome_only_apis.rs:259
↓ 1 callers
Method
convert_audio_to_worker
Convert audio operations to Web Worker
src/transformer/offscreen_converter.rs:159
↓ 1 callers
Method
convert_complex_conditions
Convert complex conditions with advanced monitoring
src/transformer/declarative_content_converter.rs:141
↓ 1 callers
Method
convert_declarative_content
( &self, context: &ConversionContext, )
src/transformer/chrome_only_converter.rs:122
↓ 1 callers
Method
convert_dom_to_content_script
Convert DOM parsing to content script
src/transformer/offscreen_converter.rs:310
↓ 1 callers
Function
convert_extension_zip
(zip_data: &[u8])
src/wasm.rs:27
↓ 1 callers
Function
convert_extension_zip_with_shortcuts
( zip_data: &[u8], shortcut_replacements_json: &str, )
src/wasm.rs:34
↓ 1 callers
Method
convert_network_to_background
Convert network operations to background script
src/transformer/offscreen_converter.rs:241
↓ 1 callers
Method
convert_offscreen_apis
( &self, context: &ConversionContext, )
src/transformer/chrome_only_converter.rs:54
↓ 1 callers
Method
convert_tab_groups
(&self, context: &ConversionContext)
src/transformer/chrome_only_converter.rs:153
↓ 1 callers
Function
create_dnr_extension
Create a test extension with declarativeNetRequest API
tests/integration_tests.rs:132
↓ 1 callers
Function
create_downloads_compat
()
src/transformer/shims.rs:1022
↓ 1 callers
Function
create_legacy_tabs_extension
Create a test extension with legacy tabs APIs
tests/integration_tests.rs:190
↓ 1 callers
Function
create_notifications_compat
()
src/transformer/shims.rs:1197
↓ 1 callers
Function
create_privacy_stub
()
src/transformer/shims.rs:1076
↓ 1 callers
Function
create_runtime_compat
()
src/transformer/shims.rs:975
↓ 1 callers
Function
create_sidepanel_extension
Create a test extension with sidePanel API
tests/integration_tests.rs:102
↓ 1 callers
Function
create_storage_session_extension
Create a simple test extension with storage.session API
tests/integration_tests.rs:73
↓ 1 callers
Function
create_tabs_windows_compat
()
src/transformer/shims.rs:885
↓ 1 callers
Function
create_user_scripts_compat
()
src/transformer/shims.rs:822
↓ 1 callers
Function
create_userscripts_extension
Create a test extension with userScripts API
tests/integration_tests.rs:165
↓ 1 callers
Function
create_zip_from_result
Create ZIP file from conversion result
src/wasm.rs:217
↓ 1 callers
Method
detect_context_type
(&self, script: &str)
src/analyzer/offscreen.rs:267
↓ 1 callers
Method
detect_dependencies
(&self, script: &str)
src/analyzer/offscreen.rs:277
↓ 1 callers
Method
detect_usage
Detect chrome.offscreen API usage in JavaScript code using regex
src/analyzer/offscreen.rs:21
↓ 1 callers
Method
determine_primary_purpose
(&self, analysis: &DocumentAnalysis)
src/analyzer/offscreen.rs:152
next →
1–100 of 288, ranked by callers