{"id":13583246,"url":"https://github.com/Niek/playwright-addons","last_synced_at":"2025-04-06T18:32:05.235Z","repository":{"id":44336734,"uuid":"274646798","full_name":"Niek/playwright-addons","owner":"Niek","description":"Add-ons for Playwright: adblocker, stealth mode","archived":true,"fork":false,"pushed_at":"2021-02-09T19:06:04.000Z","size":26,"stargazers_count":46,"open_issues_count":0,"forks_count":6,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-11-05T23:41:40.685Z","etag":null,"topics":["addons","browser-automation","playwright","puppeteer-extra"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Niek.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-24T10:59:54.000Z","updated_at":"2024-08-30T15:07:38.000Z","dependencies_parsed_at":"2022-09-01T16:40:43.685Z","dependency_job_id":null,"html_url":"https://github.com/Niek/playwright-addons","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Niek%2Fplaywright-addons","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Niek%2Fplaywright-addons/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Niek%2Fplaywright-addons/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Niek%2Fplaywright-addons/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Niek","download_url":"https://codeload.github.com/Niek/playwright-addons/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247531123,"owners_count":20953897,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["addons","browser-automation","playwright","puppeteer-extra"],"created_at":"2024-08-01T15:03:21.170Z","updated_at":"2025-04-06T18:32:04.899Z","avatar_url":"https://github.com/Niek.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Add-ons for Playwright\n\u003c!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section --\u003e\n[![All Contributors](https://img.shields.io/badge/all_contributors-2-orange.svg?style=flat-square)](#contributors-)\n\u003c!-- ALL-CONTRIBUTORS-BADGE:END --\u003e\n\n## WARNING: Please use [playwright-extra](https://github.com/berstend/puppeteer-extra/pull/303#issuecomment-775277480) instead, this repo is now obsolete.\n\n---\n\n## Old info:\n\nThis package contains add-ons for the excellent [Playwright](https://github.com/microsoft/playwright/) browser automation framework. This package is still in development, so no releases yet.\n\n#### Installation\n```bash\nnpm i Niek/playwright-addons#master\n```\n\n#### Example usage\n```js\n(async () =\u003e {\n    const browser = await require('playwright').chromium.launch({headless: false}); // or: firefox, webkit\n    const addons = await import('playwright-addons');\n    const page = await browser.newPage();\n\n    await addons.adblocker(browser);\n    await page.goto('https://cnn.com/');\n\n    await addons.stealth(browser);\n    await page.goto('https://bot.sannysoft.com/');\n})();\n```\n\n#### Docker\nSample usage in Docker (run the script `test.js`):\n```bash\ndocker container run -it --rm --ipc=host --cap-add=SYS_ADMIN -u root -p 5900:5900 -v $(pwd):/src -w /src \\\n  -e PLAYWRIGHT_BROWSERS_PATH=0 -e DEBIAN_FRONTEND=noninteractive -e X11VNC_CREATE_GEOM=1280x720x24 \\\n  -e FD_PROG=\"(fluxbox \u0026) \u0026\u0026 xterm -hold -maximized -e npx nodemon test.js\" mcr.microsoft.com/playwright:bionic sh -c \\\n  \"apt-get install -qq -y x11vnc git fluxbox \u0026\u0026 su pwuser -c 'npm i nodemon Niek/playwright-addons#master \u0026\u0026 x11vnc -q -create -nopw -forever'\"\n```\nYou can then connect with a VNC client to localhost:5900. The process/browser will reload on any file changes.\n\n#### Documentation\nFor generated documentation, see [the API docs](/api.md).\n## Contributors ✨\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/Wapweb\"\u003e\u003cimg src=\"https://avatars2.githubusercontent.com/u/8421581?v=4\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eAlexandr\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"#ideas-Wapweb\" title=\"Ideas, Planning, \u0026 Feedback\"\u003e🤔\u003c/a\u003e \u003ca href=\"https://github.com/Niek/playwright-addons/commits?author=Wapweb\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/SentoxAIO\"\u003e\u003cimg src=\"https://avatars0.githubusercontent.com/u/57367608?v=4\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eSentoxAIO\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"#ideas-SentoxAIO\" title=\"Ideas, Planning, \u0026 Feedback\"\u003e🤔\u003c/a\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n\u003c!-- markdownlint-enable --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNiek%2Fplaywright-addons","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FNiek%2Fplaywright-addons","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNiek%2Fplaywright-addons/lists"}