Skip to content

AI Agent Disable Option #28

Merged
merged 2 commits into from
Feb 6, 2026
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions tdx-enhanced.js
Original file line number Diff line number Diff line change
Expand Up @@ -713,6 +713,13 @@
document.querySelectorAll("div.moreToggle *:not(a), div.lessToggle *:not(a), div.wrap-text *:not(a)").forEach(textBlock=>{
textBlock.style.color = "var(--txt-1)"
})
document.querySelectorAll("#ToggleAIAgentAssist").forEach(AIAgentButton=>{
let selected = settings('get','aiBehavior');
console.log("AI Behavior selected:",selected.value)
if (selected == "aiDisable") {
AIAgentButton.style.display = "none"
}
})

let desktopLayout = settings('get','layout')
let desktop = document.querySelector("#divContent")
Expand Down Expand Up @@ -1466,6 +1473,13 @@
<input type="radio" id="highlightBehavior-text" name="highlightBehavior" value="text">
<label for="highlightBehavior-block">Text</label><br>
</div>
<div>
<h3>AI Agent</h3>
<input type="radio" id="aiBehavior-enable" name="aiBehavior" value="aiEnable">
<label for="aiBehavior-enable">AI Enable</label><br>
<input type="radio" id="aiBehavior-disable" name="aiBehavior" value="aiDisable">
<label for="aiBehavior-disable">AI Disable</label>
</div>
</form>
</div>
Expand Down