Dea DardanicaDocumentation

Customize websites with tweaks

A tweak is a saved script that changes a website whenever you load it in Dea. This guide shows how to ask your agent for one, try it, adjust it, and switch it off. Read Dea Tweaks for the feature overview.

Ask your agent to make one#

Open the website in Dea and start your connected coding agent. Describe a change that should persist on future visits:

text
Create a Dea tweak for https://example.com/.
Make the main heading dark green and underline it so I can see the change.
Keep the page's text and links working. Save it as example-heading.user.js
in Dea's Tweaks folder, then tell me how to turn it off.

The agent should inspect the actual page, choose its targets, and write the script. There is no dedicated MCP tool called “create tweak”: the agent uses its normal local file-writing tools to save the file.

Find it in Dea#

Select Tweaks in the left rail. The new entry should appear automatically after the file is written. Each entry shows its name, description, matching websites, Remove, and an on/off switch. A script requesting optional TypeSafe judgments has a uses Jev label.

The search field filters by script name, description, filename, or website. The count shows how many scripts are on.

Load the website and verify the change#

Confirm the tweak is switched on, then load or reload https://example.com/. Its heading should become green and underlined. The page should still have its original text and working link.

Writing a file does not inject the new code into pages that are already open. Reload after creating or editing a tweak. Existing scripts that support in-page updates can then watch for later changes themselves.

If nothing changes, check that the entry is enabled, the address matches its website rules, and you have reloaded since the last edit. The troubleshooting table below covers common causes.

Adjust an existing tweak#

Tell the agent which tweak to edit and what to change:

text
Update my Example heading tweak: keep the underline, but use a darker green.
Edit the existing file rather than adding another copy.

The file stays in the Tweaks folder. Reload the page to apply the edited code. For a script used on several sites, test each affected URL before keeping the change enabled.

Add a script file yourself#

Open Tweaks → Add file and select a .js or .user.js file. Dea copies it into the Tweaks folder. If the name already exists, it gives the imported copy a numbered filename; it does not overwrite the original. Edit the imported copy to update the installed script.

Open folder opens the local Tweaks directory in your file manager. Its usual location is Documents/Dea/Tweaks/, using your OS Documents folder. You or an agent can save files there directly. Prefer the .user.js suffix for recognizable userscripts; Dea also accepts .js files.

Here is the complete script for the example above:

js
// ==UserScript==
// @name        Example heading
// @description Makes Example Domain's heading green and underlined.
// @match       https://example.com/*
// @run-at      document-end
// ==/UserScript==

GM_addStyle('h1 { color: #2d5634; text-decoration: underline; }');

Save it as example-heading.user.js. The header gives Dea its display name, site rule, and run time. GM_addStyle adds the CSS. This rule was chosen for Example Domain; an agent should inspect other sites before choosing their selectors.

Switch off or remove it#

Switch the entry off, then reload the website. The file remains available for later use. Disable applies to future page loads; it does not automatically undo the current page's DOM changes, listeners, or timers.

Choose Remove, then confirm, to remove its local file. Dea attempts to move the file to your OS trash, with deletion as a fallback. Reload the website afterward. This does not undo messages, records, or settings the script already changed on the site.

Ask for a more useful customization#

Give the agent enough detail to verify the result:

text
Create a Dea tweak for this dashboard. Add a button beside each order that
copies its order number. Use the actual controls on this page, preserve
keyboard access, and make sure the buttons still appear after filtering.
Do not submit or change any orders.

For a repeated action, specify its scope and stopping point. A script that sends, deletes, or edits data should have an explicit user trigger, progress feedback, and a Stop control. The agent should verify the result of each step before continuing.

For a feed filter using AI judgments, explain the category and how uncertain items should be treated. Ask the agent to process only relevant visible items, batch calls where practical, and leave items unchanged if Jev is unavailable. See the Jev API.

Troubleshooting#

Customize websites with tweaks — table 1
SymptomWhat to check
The file does not appearUse Open folder to confirm the actual directory. Use a visible filename ending in .js.
The entry says “No sites”Add a valid @match or @include rule in the userscript header.
The entry is on, but nothing happensCheck the full URL, exclusions, actual page controls, and whether you reloaded after editing.
It works initially, then stops after navigating within the siteThe site may update without a full load. The script needs to handle new content and route changes.
Two copies both runImporting an existing filename creates a numbered copy. Disable the extra copy and edit the intended file.
“uses Jev” appears, but no classification happensCheck Settings → Jev → TypeSafe key. Handle unavailable or rate-limited judgments.
A userscript from another browser failsIt may require APIs or metadata that Dea does not support. Check the reference.
The page behaves incorrectlySwitch the tweak off and reload. Ask the agent to inspect its error before enabling it again.

Initial script errors appear in the page console as [Dea tweak: <name>]. Later asynchronous errors can appear as ordinary page errors. An agent can inspect console events through Dea's event tools.

For implementation details, continue with the Tweak script reference.