Closed wraithan closed 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.
You can also remove the #links-saved
node at the end of the code.
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.