Skip to content

Commit

Permalink
Removed built-in extensions (openwpm#754)
Browse files Browse the repository at this point in the history
Closes openwpm#233
Removed built-in extensions:
- ghostery
- uBlock Origin
- https-everywhere
- AdBlock Plus
  • Loading branch information
Metropass authored Sep 30, 2020
1 parent b88b9ec commit c376709
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 81 deletions.
72 changes: 0 additions & 72 deletions automation/DeployBrowsers/configure_firefox.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
""" Set prefs and load extensions in Firefox """


import os
import shutil

EXT_STORAGE_DIR = "browser-extension-data"


def privacy(browser_params, fp, fo, root_dir, browser_profile_path):
"""
Configure the privacy settings in Firefox. This includes:
Expand All @@ -16,11 +10,6 @@ def privacy(browser_params, fp, fo, root_dir, browser_profile_path):
* Privacy extensions
"""

# Make extension storage directory
storage_dir = os.path.join(browser_profile_path, EXT_STORAGE_DIR)
if not os.path.isdir(storage_dir):
os.mkdir(storage_dir)

# Turns on Do Not Track
if browser_params["donottrack"]:
fo.set_preference("privacy.donottrackheader.enabled", True)
Expand All @@ -41,67 +30,6 @@ def privacy(browser_params, fp, fo, root_dir, browser_profile_path):
"https://github.com/citp/OpenWPM/issues/101"
)

# AbBlock Plus
if browser_params["adblock-plus"]:
raise RuntimeError(
"AdBlock Plus is not currently supported. See: "
"https://github.com/citp/OpenWPM/issues/35"
)

# Ghostery
# Updated: 2017-10-7
if browser_params["ghostery"]:
fp.add_extension(
extension=os.path.join(
root_dir, "firefox_extensions", "ghostery", "ghostery-7.3.3.7.xpi"
)
)
ghostery_dir = os.path.join(storage_dir, "firefox@ghostery.com")
if not os.path.isdir(ghostery_dir):
os.mkdir(ghostery_dir)
shutil.copy(
os.path.join(root_dir, "firefox_extensions", "ghostery", "storage.js"),
ghostery_dir,
)

# Disconnect
# Updated: 2017-10-7
if browser_params["disconnect"]:
fp.add_extension(
extension=os.path.join(
root_dir, "firefox_extensions", "disconnect-5.18.21.xpi"
)
)

# Enable HTTPS Everywhere
# Updated: 2017-10-7
if browser_params["https-everywhere"]:
fp.add_extension(
extension=os.path.join(
root_dir, "firefox_extensions", "https_everywhere-2017.10.4.xpi"
)
)

# uBlock Origin
# Updated: 2017-10-7
# Uses the default blocklists that ship with the XPI.
if browser_params["ublock-origin"]:
fp.add_extension(
extension=os.path.join(
root_dir,
"firefox_extensions",
"ublock_origin",
"ublock_origin-1.14.10.xpi",
)
)
ublock_dir = os.path.join(storage_dir, "uBlock0@raymondhill.net")
if not os.path.isdir(ublock_dir):
os.mkdir(ublock_dir)
shutil.copy(
os.path.join(root_dir, "firefox_extensions", "ublock_origin", "storage.js"),
ublock_dir,
)


def optimize_prefs(fo):
"""
Expand Down
Binary file not shown.
Binary file not shown.

This file was deleted.

Binary file not shown.

This file was deleted.

Binary file not shown.
7 changes: 0 additions & 7 deletions automation/default_browser_params.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"save_content": false,
"callstack_instrument": false,
"dns_instrument": false,

"random_attributes": false,
"bot_mitigation": false,
"seed_tar": null,
Expand All @@ -17,13 +16,7 @@
"display_mode": "native",
"browser": "firefox",
"prefs": {},

"tp_cookies": "always",
"donottrack": false,
"disconnect": false,
"ghostery": false,
"https-everywhere": false,
"adblock-plus": false,
"ublock-origin": false,
"tracking-protection": false
}

0 comments on commit c376709

Please sign in to comment.