Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
BBInsertBar
Stash
✭
There didn't appear to be an official forum thread for BBInsertBar, so I thought I'd start one :)
I like the BBInsertBar a lot, but found that it added a LOT of weight to each and every page. Since I only use a handfull of different colours ever, I had a look to see if I could reduce the number of colours that appear in the colour button popup. I thought I'd share this so if anyone else wants to ease up the pages and implement what I like to think of as BBInsertBarLite.
I commented out lines 72 to 99 inclusive in the deafult.php and my test page went from 76,943 bytes to 27,785 bytes!
Yes, I am that good at PHP, thank you.
/me bows then breaks into fits of laughter
0
This discussion has been closed.
Comments
default.php
Change line 81 from to Change line 95 from to Change line 105 from tostyle.css
After line 29 (the end of #BBBarClorPicker) add the following: This took my test page down to 50,860 bytes, and my BBInsertBarLite test page to 22,006 bytes.Hope this helps someone else.
I was looking for a reduced color palette on this. Thanks!
Only the following buttons appear to work more-or-less as expected in IE7, for me:
default.php
I've updated the font formatting in the BBBarFontList by replacing the deprecated <font> tag with a style in the anchor tag. I also removed the bullet points as I didn't really like them...Line 112 from to
functions.js
pbear: this gets rid of the inverted commas that you mentioned and fixes the font button! Thanks Now the font formatting should work in Firefox (it does for me).Line 315 from to I changed this to replace the deprecated <font> tag with a styled <span>.
Line 316 from to I changed this to remove some line returns. I don't like the extra lines that vanilla puts between list items, if I want a blank line, I'll hit enter again myself. The BBCode works wonderfully, but the HTML you end up having to have in one big line, which is sucky, but hey...
Lines 216-217 from to Line 221-222 from to
style.css
This makes the BBBarFontList a little tighter fitting.Line 50 from to And this fixes the mouseover effect for the font list.
Line 62-66 from to
My hat comes off to hutstein as there is absolutely no way I could have created this excellent extension from scratch, I'm just happy to help improve it if I can
Edit: Here's a link to an archive for hutstein. Feel free to moderate this link out if you think it shouldn't be publicly available.
Feeling lazy!
---------
Take a break with a webcomic!
Read nemu-nemu.com.
Perhaps you could take a look and fix the problem?
Also, I'll see about moving the div code generation from php to JS so that it can be cached with the other functions. I noted the CSS optimization too, but it could all be moved out. (To be perfectly honest, you could move the entire toolbar creation process to JS. Maybe I'll just do that...)
Also does this work with Vanillacons? I can't even get Vanillacons to work on their own for some reason... selecting a different set of vanillacons makes the emoticons disappear.
------
Take a break and enjoy a webcomic!
nemu*nemu