{"action":"created","issue":{"url":"https://api.github.com/repos/intoli/intoli-article-materials/issues/13","repository_url":"https://api.github.com/repos/intoli/intoli-article-materials","labels_url":"https://api.github.com/repos/intoli/intoli-article-materials/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/intoli/intoli-article-materials/issues/13/comments","events_url":"https://api.github.com/repos/intoli/intoli-article-materials/issues/13/events","html_url":"https://github.com/intoli/intoli-article-materials/issues/13","id":342008034,"node_id":"MDU6SXNzdWUzNDIwMDgwMzQ=","number":13,"title":"firefox: how to pass all test","user":{"login":"erotavlas85","id":11888321,"node_id":"MDQ6VXNlcjExODg4MzIx","avatar_url":"https://avatars0.githubusercontent.com/u/11888321?v=4","gravatar_id":"","url":"https://api.github.com/users/erotavlas85","html_url":"https://github.com/erotavlas85","followers_url":"https://api.github.com/users/erotavlas85/followers","following_url":"https://api.github.com/users/erotavlas85/following{/other_user}","gists_url":"https://api.github.com/users/erotavlas85/gists{/gist_id}","starred_url":"https://api.github.com/users/erotavlas85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erotavlas85/subscriptions","organizations_url":"https://api.github.com/users/erotavlas85/orgs","repos_url":"https://api.github.com/users/erotavlas85/repos","events_url":"https://api.github.com/users/erotavlas85/events{/privacy}","received_events_url":"https://api.github.com/users/erotavlas85/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-07-17T17:11:17Z","updated_at":"2018-07-24T12:56:31Z","closed_at":"2018-07-23T13:04:24Z","author_association":"NONE","body":"Hi,\r\nI read all your posts regarding how to avoid headless detection. I was able to obtain an unique working script with both [first](https://intoli.com/blog/making-chrome-headless-undetectable/) and [second](https://intoli.com/blog/not-possible-to-block-chrome-headless/) set of test by using puppeteer and chromium.\r\nNow after reading how to [inject javascript with selenium and marionette with firefox](https://github.com/intoli/intoli-article-materials/tree/master/articles/javascript-injection), I'm trying to obtain a script that is able to bypass both previous test with firefox.\r\nI already tried both solutions via execute_async_script and via web extension since firefox supports it also in headless mode differently to chromium without success. Quite surely my mistakes are with javascript since I have limited knowledge of it.\r\nCan you point out how to achieve [the same result of chromium with firefox](https://github.com/intoli/intoli-article-materials/tree/master/articles/not-possible-to-block-chrome-headless)? Is there documentation that I can follow?\r\nThank you\r\nP.S.\r\nI also tried to use an add ons as [greasemonkey](https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/) or [violentmonkey](https://addons.mozilla.org/en-US/firefox/addon/violentmonkey/) without success. This should confirm that is something related to javascript."},"comment":{"url":"https://api.github.com/repos/intoli/intoli-article-materials/issues/comments/407396812","html_url":"https://github.com/intoli/intoli-article-materials/issues/13#issuecomment-407396812","issue_url":"https://api.github.com/repos/intoli/intoli-article-materials/issues/13","id":407396812,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNzM5NjgxMg==","user":{"login":"sangaline","id":8236564,"node_id":"MDQ6VXNlcjgyMzY1NjQ=","avatar_url":"https://avatars3.githubusercontent.com/u/8236564?v=4","gravatar_id":"","url":"https://api.github.com/users/sangaline","html_url":"https://github.com/sangaline","followers_url":"https://api.github.com/users/sangaline/followers","following_url":"https://api.github.com/users/sangaline/following{/other_user}","gists_url":"https://api.github.com/users/sangaline/gists{/gist_id}","starred_url":"https://api.github.com/users/sangaline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sangaline/subscriptions","organizations_url":"https://api.github.com/users/sangaline/orgs","repos_url":"https://api.github.com/users/sangaline/repos","events_url":"https://api.github.com/users/sangaline/events{/privacy}","received_events_url":"https://api.github.com/users/sangaline/received_events","type":"User","site_admin":false},"created_at":"2018-07-24T12:56:31Z","updated_at":"2018-07-24T12:56:31Z","author_association":"MEMBER","body":"If you use `driver.execute_script()` then the code is going to evaluate after the tests have already run. The method of injecting a script tag is specifically for breaking out of the content script context of a Web Extension. You need to put the code that injects the script tag in the content script of an extension, and load that extension using Selenium."}}
{"actor":{"display_login":"sangaline"}}