Skip to content

Commit 3551c0a

Browse files
committed
Try stomping user agent avoid youtube bot detection
1 parent ec752a9 commit 3551c0a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

tests/tabs/test_mute_tabs.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,15 @@ def test_case():
1818

1919
@pytest.fixture()
2020
def add_to_prefs_list():
21-
return [("network.cookie.cookieBehavior", "2")]
21+
return [
22+
("network.cookie.cookieBehavior", "2"),
23+
("dom.webdriver.enabled", False),
24+
("useAutomationExtension", False),
25+
(
26+
"general.useragent.override",
27+
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:142.0) Gecko/20100101 Firefox/142.0",
28+
),
29+
]
2230

2331

2432
@pytest.mark.audio

0 commit comments

Comments
 (0)