mozilla / nightlytt

Nightly Tester Tools
https://wiki.mozilla.org/Auto-tools/Automation_Development/Projects/Addons/NightlyTesterTools
Other
61 stars 37 forks source link

[customize-titlebar] conditional labels #113

Open roytam1 opened 11 years ago

roytam1 commented 11 years ago

I think it will be nice to have a foobar2000 $if() label so that people can show page URL if page title is blank, or not showing separator if page title is blank.

for now I can just hack browser.js and change tabTitle() to:

  return tabbrowser.mCurrentBrowser.contentTitle ? tabbrowser.mCurrentBrowser.contentTitle : tabbrowser.mCurrentBrowser.contentDocument.location.href;
xabolcs commented 11 years ago

You are right, it would be nice if NTT could have some conditional logic. I already filed #34, a conditional dash: it's displayed if previous token is not blank and hidden if token is blank.

Of course a more robust IF conditional would be more fantastic! :)

ria-19 commented 2 years ago

Is this still open?

whimboo commented 2 years ago

Yes it is. Due to time constraints nightlytt is basically unmaintained at the moment. But we are happy to accept patches in case someone is interested to help out.