# Set user agent

When you want to change the user agent of an active tab, you can use this button. This node only changes the user agent of the active tab, not the user agent of the entire profile.

Khi bạn muốn thay đổi user agent của tab đang active thì có thể sử dụng node này. Node này chỉ thay đổi user agent của tab đang active, chứ không thay đổi user agent của cả profile.

<figure><img src="https://699023340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiEhmc20xmuwcG5ThYMWS%2Fuploads%2Fwo4hmNodDN4KR6VQIx0d%2Fimage.png?alt=media&#x26;token=119004a7-1d73-4161-95cb-6796938f6719" alt=""><figcaption></figcaption></figure>

| parameter  | illustrate                      |
| ---------- | ------------------------------- |
| User agent | Nhập user agent mà bạn muốn đổi |

Ta có ví dụ như sau:

* &#x20;Có 3 tab như hình, và tab active đang là tab số 3

<figure><img src="https://699023340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiEhmc20xmuwcG5ThYMWS%2Fuploads%2FSeGjz2EM25oDiuKqTJj3%2FScreenshot_1.png?alt=media&#x26;token=5e7c0cc6-a6c7-43a8-8e91-06d81f479101" alt=""><figcaption></figcaption></figure>

* Ví dụ muốn set user agent **Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36**  thì tại node set user agent ta thực hiện nhập user agent&#x20;

<figure><img src="https://699023340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiEhmc20xmuwcG5ThYMWS%2Fuploads%2FIKZJgBBljQP1UsIfvNyo%2Fimage.png?alt=media&#x26;token=072f9949-541c-425f-8769-9afbf34562ae" alt=""><figcaption></figcaption></figure>

* Sau đó ta chạy script.
* Ta sẽ kiểm tra user agent tại đây:

<figure><img src="https://699023340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiEhmc20xmuwcG5ThYMWS%2Fuploads%2F0AubKwfi3fOejlnLTq5Z%2Fimage.png?alt=media&#x26;token=fb972612-8ea2-42d1-8498-c3cb36fe8fe9" alt=""><figcaption></figcaption></figure>

Như vậy ta đã set user agent thành công.
