diff --git a/grattoir/__init__.py b/grattoir/__init__.py index 5b09e9f..3e3e35b 100644 --- a/grattoir/__init__.py +++ b/grattoir/__init__.py @@ -26,12 +26,15 @@ class Grattoir(object): self._driver = None p_path = tor_profile() profile = firefox.firefox_profile.FirefoxProfile(profile_directory=p_path) + profile.set_preference("devtools.toolbox.selectedTool", "netmonitor") + profile.set_preference("devtools.netmonitor.persistlog", True) b_path = tor_browser_binary_path() binary = firefox.firefox_binary.FirefoxBinary(firefox_path=b_path) o = firefox.options.Options() o.profile = profile o.binary = binary self._driver = firefox.webdriver.WebDriver(options=o) + self._driver.install_addon("assets/har_export_trigger-0.6.2resigned1.xpi") return self._driver def __exit__(self, exc_type, exc_value, exc_tb): diff --git a/grattoir/assets/har_export_trigger-0.6.2resigned1.xpi b/grattoir/assets/har_export_trigger-0.6.2resigned1.xpi new file mode 100644 index 0000000..b6f77a1 Binary files /dev/null and b/grattoir/assets/har_export_trigger-0.6.2resigned1.xpi differ