# executeScript() for thunderbird/lightning/tasks? (in tbird/addons)

**URL:** <https://discourse.mozilla.org/t/executescript-for-thunderbird-lightning-tasks-in-tbird-addons/131394>\
**Category:** Add-ons\
**Created:** [June 21, 2024, 7:00pm UTC](https://discourse.mozilla.org/t/executescript-for-thunderbird-lightning-tasks-in-tbird-addons/131394 "2024-06-21T19:00:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![n952162](https://avatars.discourse-cdn.com/v4/letter/n/3d9bf3/32.png) [@n952162](https://discourse.mozilla.org/u/n952162)\
**Post date:** [June 21, 2024, 7:00pm UTC](https://discourse.mozilla.org/t/executescript-for-thunderbird-lightning-tasks-in-tbird-addons/131394/1 "2024-06-21T19:00:04Z")

</div>

Hello,

I’m trying to write an add-on to thunderbird/lightning/tasks to delete a  
UI element that gets in my way:

/html/body/vbox/hbox[1]/tabmail/tabbox/tabpanels/vbox[2]/hbox/hbox/vbox[2]/hbox/box[1]

but I can’t get executeScript() to be injected in the tab. I can find  
the “Tasks” tab, but it has no URL, unlike other tabs. Is it forbidden  
to inject a script into that tab?

---

<div class="post-metadata">

**Author:** ![wsmwk](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/wsmwk/32/20777_2.png) [@wsmwk](https://discourse.mozilla.org/u/wsmwk)\
**Post date:** [July 4, 2024, 6:19pm UTC](https://discourse.mozilla.org/t/executescript-for-thunderbird-lightning-tasks-in-tbird-addons/131394/2 "2024-07-04T18:19:13Z")

</div>

@n952162 Thanks for reaching out.

Please see [Useful Thunderbird Links](https://discourse.mozilla.org/t/useful-thunderbird-links/26733) which has the link to add-ons development
