Skip to content

Commit

Permalink
Ai Agent Toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
beard67 committed Feb 6, 2026
1 parent c32d28f commit 74ef156
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tdx-enhanced.js
Original file line number Diff line number Diff line change
Expand Up @@ -713,6 +713,12 @@
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=>{
const selected = document.querySelector('input[name="aiBehavior"]:checked');
if (selected.value == "aiDisable") {
AIAgentButton.style.display = "none"
}
})

let desktopLayout = settings('get','layout')
let desktop = document.querySelector("#divContent")
Expand Down Expand Up @@ -1466,6 +1472,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

0 comments on commit 74ef156

Please sign in to comment.