add har_export_trigger

main
mmalter 2025-02-11 04:11:39 +01:00
parent 647a7744fb
commit 88511b62aa
2 changed files with 3 additions and 0 deletions

View File

@ -26,12 +26,15 @@ class Grattoir(object):
self._driver = None self._driver = None
p_path = tor_profile() p_path = tor_profile()
profile = firefox.firefox_profile.FirefoxProfile(profile_directory=p_path) 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() b_path = tor_browser_binary_path()
binary = firefox.firefox_binary.FirefoxBinary(firefox_path=b_path) binary = firefox.firefox_binary.FirefoxBinary(firefox_path=b_path)
o = firefox.options.Options() o = firefox.options.Options()
o.profile = profile o.profile = profile
o.binary = binary o.binary = binary
self._driver = firefox.webdriver.WebDriver(options=o) self._driver = firefox.webdriver.WebDriver(options=o)
self._driver.install_addon("assets/har_export_trigger-0.6.2resigned1.xpi")
return self._driver return self._driver
def __exit__(self, exc_type, exc_value, exc_tb): def __exit__(self, exc_type, exc_value, exc_tb):

Binary file not shown.