Hacker News new | ask | show | jobs
by DiThi 3133 days ago
I did some digging for you in the browser console. userChrome.css can't touch TST's content. TST is in a separate document (sidebar.html). I'm sure the tabs in TST aren't the actual browser tabs, but they're made to look exactly the same as before. Talk to TST's author, or modify the addon yourself, it must have a CSS file, the tabs are "li.tab" (<li> elements, tab class). The active one is "li.tab.active".

    document.querySelector('#sidebar')._contentWindow[0].document.querySelectorAll('.tab.active')
1 comments

Thanks. Actually, it turns out that the latest version contains a mini-editor for the appropriate file (whichever it is). And it includes a link [1] to further documentation about what to do with it.

[1] https://github.com/piroor/treestyletab/wiki/Code-snippets-fo...