gkoberger / BugzillaJS

A userscript that adds additional functionality to bugzilla
https://addons.mozilla.org/en-US/firefox/addon/bugzillajs/
43 stars 18 forks source link

Add saved searches to the top bar #88

Closed wraithan closed 11 years ago

wraithan commented 11 years ago

I can break out the change to the preferences location, but I also fixed that for the Mozilla theme.

I used a VanillaJS style for my added functionality, I can change that to a jquery style if desired.

The saved search in the top bar only works in the Mozilla theme because it includes a dropdown style. More fancy detection of the theme will be needed to inject the proper style if the Mozilla theme is not present, I can add that if you are ok with special casing themes.

rik commented 11 years ago

VanillaJS is cool, I'm removing jQuery has much as possible.

Since this is specific to the Mozilla theme, you should check for body.classList.contains('skin-Mozilla') and do an early return.

rik commented 11 years ago

You can also remove the #links-saved node at the end of the code.