Skip to content

Commit

Permalink
Sorted lists and removed TranslateUI
Browse files Browse the repository at this point in the history
  • Loading branch information
pmeenan committed Nov 11, 2022
1 parent 4471c3c commit 5119281
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 53 deletions.
54 changes: 26 additions & 28 deletions internal/chrome_android.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,56 +19,54 @@
from .android_browser import AndroidBrowser

CHROME_COMMAND_LINE_OPTIONS = [
'--disable-fre',
'--metrics-recording-only',
'--disable-background-networking',
'--disable-component-update',
'--no-default-browser-check',
'--no-first-run',
'--allow-running-insecure-content',
'--disable-background-networking',
'--disable-background-timer-throttling',
'--disable-backgrounding-occluded-windows',
'--disable-breakpad',
'--disable-client-side-phishing-detection',
'--disable-device-discovery-notifications',
'--disable-component-update',
'--disable-default-apps',
'--disable-domain-reliability',
'--disable-background-timer-throttling',
'--disable-external-intent-requests',
'--enable-remote-debugging',
'--net-log-capture-mode=IncludeSensitive',
'--mute-audio',
'--disable-hang-monitor',
'--password-store=basic',
'--disable-breakpad',
'--disable-fetching-hints-at-navigation-start',
'--disable-site-isolation-trials',
'--disable-backgrounding-occluded-windows',
'--disable-fre',
'--disable-hang-monitor',
'--disable-ipc-flooding-protection',
'--disable-prompt-on-repost',
'--disable-renderer-backgrounding',
'--disable-site-isolation-trials',
'--disable-sync',
'--enable-remote-debugging',
'--metrics-recording-only',
'--metrics-recording-only',
'--mute-audio',
'--net-log-capture-mode=IncludeSensitive',
'--no-default-browser-check',
'--no-first-run',
'--password-store=basic',
'--use-mock-keychain',
'--disable-ipc-flooding-protection',
'--disable-prompt-on-repost'
]

HOST_RULES = [
'"MAP cache.pack.google.com 127.0.0.1"',
'"MAP clients1.google.com 127.0.0.1"',
'"MAP update.googleapis.com 127.0.0.1"',
'"MAP redirector.gvt1.com 127.0.0.1"',
'"MAP offlinepages-pa.googleapis.com 127.0.0.1"',
'"MAP optimizationguide-pa.googleapis.com 127.0.0.1"'
'"MAP optimizationguide-pa.googleapis.com 127.0.0.1"',
'"MAP redirector.gvt1.com 127.0.0.1"',
'"MAP update.googleapis.com 127.0.0.1"',
]

DISABLE_CHROME_FEATURES = [
'InterestFeedContentSuggestions',
'CalculateNativeWinOcclusion',
'TranslateUI',
'Translate',
'OfflinePagesPrefetching',
'HeavyAdPrivacyMitigations',
'AutofillServerCommunication',
'BackForwardCache',
'CalculateNativeWinOcclusion',
'HeavyAdPrivacyMitigations',
'InterestFeedContentSuggestions',
'MediaRouter',
'OptimizationHints'
'OfflinePagesPrefetching',
'OptimizationHints',
'Translate',
]

ENABLE_CHROME_FEATURES = [
Expand Down
48 changes: 23 additions & 25 deletions internal/chrome_desktop.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,57 +21,55 @@
import json

CHROME_COMMAND_LINE_OPTIONS = [
'--disable-background-networking',
'--no-default-browser-check',
'--no-first-run',
'--new-window',
'--allow-running-insecure-content',
'--disable-background-networking',
'--disable-background-timer-throttling',
'--disable-backgrounding-occluded-windows',
'--disable-breakpad',
'--disable-client-side-phishing-detection',
'--disable-component-update',
'--disable-default-apps',
'--disable-device-discovery-notifications',
'--disable-domain-reliability',
'--disable-background-timer-throttling',
'--mute-audio',
'--disable-hang-monitor',
'--password-store=basic',
'--disable-breakpad',
'--disable-fetching-hints-at-navigation-start',
'--disable-site-isolation-trials',
'--disable-backgrounding-occluded-windows',
'--disable-hang-monitor',
'--disable-ipc-flooding-protection',
'--disable-prompt-on-repost',
'--disable-renderer-backgrounding',
'--disable-site-isolation-trials',
'--disable-sync',
'--metrics-recording-only',
'--mute-audio',
'--new-window',
'--no-default-browser-check',
'--no-first-run',
'--password-store=basic',
'--use-mock-keychain',
'--disable-ipc-flooding-protection',
'--disable-prompt-on-repost'
]

HOST_RULES = [
'"MAP cache.pack.google.com 127.0.0.1"',
'"MAP clients1.google.com 127.0.0.1"',
'"MAP update.googleapis.com 127.0.0.1"',
'"MAP redirector.gvt1.com 127.0.0.1"',
'"MAP edge.microsoft.com 127.0.0.1"',
'"MAP laptop-updates.brave.com 127.0.0.1"',
'"MAP offlinepages-pa.googleapis.com 127.0.0.1"',
'"MAP edge.microsoft.com 127.0.0.1"',
'"MAP optimizationguide-pa.googleapis.com 127.0.0.1"'
'"MAP optimizationguide-pa.googleapis.com 127.0.0.1"',
'"MAP redirector.gvt1.com 127.0.0.1"',
'"MAP update.googleapis.com 127.0.0.1"',
]

ENABLE_CHROME_FEATURES = [
]

DISABLE_CHROME_FEATURES = [
'InterestFeedContentSuggestions',
'CalculateNativeWinOcclusion',
'TranslateUI',
'Translate',
'OfflinePagesPrefetching',
'HeavyAdPrivacyMitigations',
'AutofillServerCommunication',
'BackForwardCache',
'CalculateNativeWinOcclusion',
'HeavyAdPrivacyMitigations',
'InterestFeedContentSuggestions',
'MediaRouter',
'OptimizationHints'
'OfflinePagesPrefetching',
'OptimizationHints',
'Translate',
]

ENABLE_BLINK_FEATURES = [
Expand Down

0 comments on commit 5119281

Please sign in to comment.