MCPcopy Create free account

hub / github.com/OtsoBear/chrome2moz / functions

Functions288 in github.com/OtsoBear/chrome2moz

↓ 10 callersFunctionconvert_extension
Main entry point for converting a Chrome extension to Firefox
src/lib.rs:33
↓ 8 callersFunctionreplace_chrome_urls
Replace all chrome:// URLs with their Firefox equivalents in the given text
src/utils/url_replacer.rs:38
↓ 8 callersFunctionshowError
(message)
web/app.js:719
↓ 8 callersFunctionvalidate_with_linter
Run addons-linter on converted extension
tests/integration_tests.rs:21
↓ 8 callersMethodwith_suggestion
(mut self, suggestion: impl Into<String>)
src/models/incompatibility.rs:66
↓ 7 callersMethodauto_fixable
(mut self)
src/models/incompatibility.rs:71
↓ 7 callersFunctionescapeHtml
(text)
web/app.js:550
↓ 6 callersMethoddefault
()
src/transformer/mod.rs:110
↓ 6 callersMethodget_file_content
Get file content as string (for text files)
src/models/extension.rs:92
↓ 6 callersFunctionnormalize_shortcut
Normalize a keyboard shortcut to a standard format for comparison
src/scripts/check_keyboard_shortcuts.rs:623
↓ 5 callersFunctionanalyze_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 callersFunctionanalyze_javascript
Analyze JavaScript code for Chrome API usage
src/parser/javascript.rs:55
↓ 5 callersMethodget_javascript_files
Get all JavaScript files in the extension
src/models/extension.rs:78
↓ 5 callersFunctionhideAllSections
()
web/app.js:693
↓ 5 callersFunctionparse_manifest
Parse manifest.json from bytes
src/parser/manifest.rs:8
↓ 5 callersMethodtransform
Simple pass-through with importScripts() removal and Firefox self-uninstall fix
src/transformer/javascript.rs:63
↓ 4 callersMethoddetermine_strategy
Determine the conversion strategy based on document analysis
src/transformer/offscreen_converter.rs:23
↓ 4 callersMethodextract_string_value
(&self, code: &str, key: &str)
src/analyzer/declarative_content.rs:91
↓ 3 callersFunctiongenerate_report
(result: &ConversionResult)
src/report/mod.rs:8
↓ 3 callersFunctionload_extension
Load extension from file or directory
src/packager/mod.rs:11
↓ 3 callersFunctionload_extension_from_bytes
Load extension from raw ZIP bytes
src/wasm.rs:180
↓ 3 callersFunctionparse_manifest_from_str
Parse manifest.json from string
src/parser/manifest.rs:33
↓ 3 callersFunctionrun_with_project_path
Run the keyboard shortcut conflict checker with a specific project path
src/scripts/check_keyboard_shortcuts.rs:68
↓ 3 callersMethodto_match_pattern
(&self)
src/models/chrome_only.rs:156
↓ 2 callersMethodadd_firefox_settings
(&self, manifest: &mut Manifest)
src/transformer/manifest.rs:52
↓ 2 callersMethodadd_incompatibility
(&mut self, incompatibility: Incompatibility)
src/models/conversion.rs:129
↓ 2 callersMethodadd_warning
(&mut self, message: impl Into<String>, location: Option<String>)
src/models/conversion.rs:133
↓ 2 callersFunctionanalyze_javascript_apis
(content: &str, path: &PathBuf)
src/analyzer/api.rs:7
↓ 2 callersFunctionanalyze_manifest
(manifest: &Manifest)
src/analyzer/manifest.rs:8
↓ 2 callersFunctionapply_default_decisions
(mut context: ConversionContext)
src/lib.rs:108
↓ 2 callersFunctioncheck_extension_shortcuts
Check a Chrome extension's keyboard shortcuts against Firefox shortcuts
src/scripts/check_keyboard_shortcuts.rs:680
↓ 2 callersFunctionclean_description
Clean up description text by removing RST markup and fixing formatting
src/scripts/check_keyboard_shortcuts.rs:596
↓ 2 callersMethodconvert
Convert declarativeContent rules to content scripts + messaging
src/transformer/declarative_content_converter.rs:17
↓ 2 callersMethodconvert_canvas_to_worker
Convert canvas operations to Web Worker
src/transformer/offscreen_converter.rs:81
↓ 2 callersFunctionconvert_extension_zip_with_options
( zip_data: &[u8], shortcut_replacements: Option<HashMap<String, String>>, )
src/wasm.rs:44
↓ 2 callersFunctioncreate_declarative_net_request_stub
()
src/transformer/shims.rs:308
↓ 2 callersFunctioncreate_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 callersFunctioncreate_sidepanel_compat
()
src/transformer/shims.rs:224
↓ 2 callersFunctioncreate_storage_session_compat
()
src/transformer/shims.rs:45
↓ 2 callersFunctioncreate_zip_from_directory
(source_dir: &Path, zip_path: &Path)
src/packager/builder.rs:23
↓ 2 callersFunctionextract_shortcuts_from_manifest
Extract keyboard shortcuts from a manifest.json file
src/scripts/check_keyboard_shortcuts.rs:818
↓ 2 callersMethodextract_target_urls
(&self, analysis: &DocumentAnalysis)
src/transformer/offscreen_converter.rs:391
↓ 2 callersFunctionfetch_firefox_devtools_shortcuts
Fetch and parse Firefox DevTools keyboard shortcuts from RST documentation
src/scripts/check_keyboard_shortcuts.rs:340
↓ 2 callersFunctionfetch_firefox_support_shortcuts
Fetch and parse Firefox keyboard shortcuts from support page HTML
src/scripts/check_keyboard_shortcuts.rs:358
↓ 2 callersFunctionfind_manifest_files
Find all manifest.json files in a directory tree
src/scripts/check_keyboard_shortcuts.rs:784
↓ 2 callersMethodgenerate_stub
Generate a stub for chrome.tabGroups that prevents crashes
src/transformer/tab_groups.rs:16
↓ 2 callersFunctionget_firefox_shortcuts
Firefox shortcuts database (commonly used shortcuts across all platforms)
src/analyzer/keyboard_shortcuts.rs:24
↓ 2 callersMethodget_info
Get info for a specific API (finds best prefix match)
src/models/chrome_api_data.rs:90
↓ 2 callersFunctionis_chrome_only_api
(api_name: &str)
src/parser/javascript.rs:97
↓ 2 callersFunctionis_supported
(entry: &Value)
src/scripts/fetch_chrome_only_apis.rs:379
↓ 2 callersFunctionload_from_directory
Load extension from directory
src/packager/extractor.rs:13
↓ 2 callersFunctionmatches_known_chrome_only
(chrome_path: &str)
src/scripts/fetch_chrome_only_apis.rs:340
↓ 2 callersMethodname
(&self)
src/models/chrome_only.rs:71
↓ 2 callersFunctionprocessFile
(file)
web/app.js:92
↓ 2 callersFunctionprompt_for_extension_path
Prompt user to select an extension path
src/cli/interactive.rs:37
↓ 2 callersFunctionrenderCollapsibleSection
(title, issues, isExpanded = true)
web/app.js:317
↓ 2 callersFunctionrun
()
src/scripts/fetch_chrome_only_apis.rs:35
↓ 2 callersFunctionshowProcessing
(message)
web/app.js:701
↓ 2 callersMethodtransform
(&self, manifest: &Manifest, source: Option<&Extension>)
src/transformer/manifest.rs:22
↓ 2 callersFunctiontransform_extension
Main transformation entry point (simplified pass-through)
src/transformer/mod.rs:24
↓ 1 callersFunctionanalyze_extension_zip
(zip_data: &[u8])
src/wasm.rs:134
↓ 1 callersFunctionanalyze_keyboard_shortcuts
(zip_data: &[u8])
src/wasm.rs:119
↓ 1 callersMethodanalyze_offscreen_document
Analyze an offscreen document to determine conversion strategy
src/analyzer/offscreen.rs:49
↓ 1 callersMethodanalyze_script_content
(&self, script: &str, analysis: &mut DocumentAnalysis)
src/analyzer/offscreen.rs:99
↓ 1 callersFunctionanalyze_shortcuts
Analyze keyboard shortcuts for conflicts with Firefox
src/analyzer/keyboard_shortcuts.rs:239
↓ 1 callersMethodanalyze_usage
Analyze JavaScript code for declarativeContent usage
src/analyzer/declarative_content.rs:15
↓ 1 callersFunctionapply_shortcut_replacements
( context: &mut crate::models::ConversionContext, replacements: HashMap<String, String>, )
src/wasm.rs:86
↓ 1 callersFunctionbuild_complete_directory
Build directory with all original files plus modifications
src/packager/builder.rs:102
↓ 1 callersFunctionbuild_complete_extension
Build Firefox extension package with all files
src/packager/mod.rs:23
↓ 1 callersFunctionbuild_directory
Build directory structure (for development) This function is now used internally by build_xpi
src/packager/builder.rs:73
↓ 1 callersFunctionbuild_xpi
Build Firefox XPI package
src/packager/builder.rs:13
↓ 1 callersMethodcalculate_complexity
(&self, analysis: &DocumentAnalysis)
src/analyzer/offscreen.rs:204
↓ 1 callersMethodcan_auto_determine_urls
(&self, analysis: &DocumentAnalysis)
src/transformer/offscreen_converter.rs:384
↓ 1 callersFunctioncheck_addons_linter
Helper to check if addons-linter is installed
tests/integration_tests.rs:13
↓ 1 callersFunctioncollect_chrome_only_apis
(filename: &str, data: &Value, results: &mut Vec<ChromeOnlyApi>)
src/scripts/fetch_chrome_only_apis.rs:259
↓ 1 callersMethodconvert_audio_to_worker
Convert audio operations to Web Worker
src/transformer/offscreen_converter.rs:159
↓ 1 callersMethodconvert_complex_conditions
Convert complex conditions with advanced monitoring
src/transformer/declarative_content_converter.rs:141
↓ 1 callersMethodconvert_declarative_content
( &self, context: &ConversionContext, )
src/transformer/chrome_only_converter.rs:122
↓ 1 callersMethodconvert_dom_to_content_script
Convert DOM parsing to content script
src/transformer/offscreen_converter.rs:310
↓ 1 callersFunctionconvert_extension_zip
(zip_data: &[u8])
src/wasm.rs:27
↓ 1 callersFunctionconvert_extension_zip_with_shortcuts
( zip_data: &[u8], shortcut_replacements_json: &str, )
src/wasm.rs:34
↓ 1 callersMethodconvert_network_to_background
Convert network operations to background script
src/transformer/offscreen_converter.rs:241
↓ 1 callersMethodconvert_offscreen_apis
( &self, context: &ConversionContext, )
src/transformer/chrome_only_converter.rs:54
↓ 1 callersMethodconvert_tab_groups
(&self, context: &ConversionContext)
src/transformer/chrome_only_converter.rs:153
↓ 1 callersFunctioncreate_dnr_extension
Create a test extension with declarativeNetRequest API
tests/integration_tests.rs:132
↓ 1 callersFunctioncreate_downloads_compat
()
src/transformer/shims.rs:1022
↓ 1 callersFunctioncreate_legacy_tabs_extension
Create a test extension with legacy tabs APIs
tests/integration_tests.rs:190
↓ 1 callersFunctioncreate_notifications_compat
()
src/transformer/shims.rs:1197
↓ 1 callersFunctioncreate_privacy_stub
()
src/transformer/shims.rs:1076
↓ 1 callersFunctioncreate_runtime_compat
()
src/transformer/shims.rs:975
↓ 1 callersFunctioncreate_sidepanel_extension
Create a test extension with sidePanel API
tests/integration_tests.rs:102
↓ 1 callersFunctioncreate_storage_session_extension
Create a simple test extension with storage.session API
tests/integration_tests.rs:73
↓ 1 callersFunctioncreate_tabs_windows_compat
()
src/transformer/shims.rs:885
↓ 1 callersFunctioncreate_user_scripts_compat
()
src/transformer/shims.rs:822
↓ 1 callersFunctioncreate_userscripts_extension
Create a test extension with userScripts API
tests/integration_tests.rs:165
↓ 1 callersFunctioncreate_zip_from_result
Create ZIP file from conversion result
src/wasm.rs:217
↓ 1 callersMethoddetect_context_type
(&self, script: &str)
src/analyzer/offscreen.rs:267
↓ 1 callersMethoddetect_dependencies
(&self, script: &str)
src/analyzer/offscreen.rs:277
↓ 1 callersMethoddetect_usage
Detect chrome.offscreen API usage in JavaScript code using regex
src/analyzer/offscreen.rs:21
↓ 1 callersMethoddetermine_primary_purpose
(&self, analysis: &DocumentAnalysis)
src/analyzer/offscreen.rs:152
next →1–100 of 288, ranked by callers