# Custom JS Editor

As a Dydubox user, you have the ability to override the JS (JavaScript) code in the Custom JS Editor available in Dydubox.

<figure><img src="/files/7kFgrIgCJPqZLLhAZCUX" alt=""><figcaption></figcaption></figure>

Example :&#x20;

1. Go to Integrations -> Channels and choose the integration you want to modify.&#x20;
2. Select the JS editor.

<figure><img src="/files/zXZQTxZlQGoytwsqlZXy" alt=""><figcaption></figcaption></figure>

3. And in the editing window, you can enter the following function:

```
dyduAfterLoad = () => {
  window.dydu.ui.toggle(3);
};
```

<figure><img src="/files/Lvo3hHkcTHNFS3PI5qXC" alt=""><figcaption></figcaption></figure>

The entered function allows the Chatbox to be in full-screen mode.&#x20;

And of course, you have the option to input any JS content that suits your needs to make the desired modifications to your Chatbox.

4. Click Apply, then publish the changes.&#x20;
5. When you open your Chatbox, you will have the following result :&#x20;

<figure><img src="/files/Hfdt0OMHCU4LHTBkAUUh" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs-en.dydu.ai/integration/channels/advanced-customization/custom-js-editor.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
