For now you’ll have to go to Wrench, Tools, Extensions, Developer mode, Load unpacked extension and load that ZIP file. I will try to get it into the Chrome Web Store tomorrow.
Or you could wait a day or two for me to get it into the Chrome Web Store.
HCO, thanks for porting my script over to Chrome. I’m curious to know what kind of effort went into making it work. Was it just infrastructure-type stuff, or did you have to make changes to the code I wrote?
I had to overhaul completely how preferences get saved and loaded. However that was mostly a big search-replace on the equivalent functionality in EE Killfile. Within your functions, the only thing I had to change was the spot where you look for the autocollapse level.
Oh, I also had to package the version of jquery you used, which apparently is allowed.
Everything I did is in plaintext in the ZIP file, so you can just look at it yourself. Your code is in content_script.js so you can diff that against the Greasemonkey version.
Features
* Clicking “quote” opens the fast reply box with the quoted text.
* Fast reply box has quick formatting buttons like the main reply page does.
* Links are un-disguised so that you can easily read the target when you mouseover. No more baseballthinkfactory.org URL prepended to them.
* Quoted posts have a toggle button on them to quickly collapse them.
* You can set a specific level of nested quotes to automatically collapse when the page loads. For instance, if you set this to 2, the second quoted post will be automatically collapsed when the page loads. This setting can be configured via the “Edit Lounge Preferences” link that appears at the bottom of the page when using the script.
Firefox installation
1) Install Greasemonkey, a free add-on for Firefox. Greasemonkey lets you run custom scripts on web pages. You will need to restart Firefox to finish the installation.
2) Click this link to load my script. Greasemonkey should recognize it and ask you if you want to install it. You do.
3) Next time you load a forum page, you should see all the wonderful features.
So then I got to thinking, the next time JMPH changes anything I am going to have to make all these same edits, and that will suck.
So I rearranged the code slightly such that all the browser-specific stuff is at the top and the common Javascript is all below it. Mostly that involved moving one big chunk of code from up in the file. The only real change is that CollapseZiggies takes a number as a parameter instead of figuring out the number itself.
So, JMPH, can you take a look at what I did to better_lounge.user.js in the zip file and see if it makes sense? There should be no functional difference. Thanks!
I’ve been following these projects for a little while. Ya know, I’m perfectly good with working with you guys to make the lounge/site experience better. You might want to pass some of your thoughts by me before spending time on things, though. First, you might save yourself some time. (I’ve already turned off the Rank Denial on links.) Second, it will avoid a situation where you spend a bunch of time working on something only to have it get broken when I change things. There are going to be a lot of changes to how things are set up. I’d love to be able to incorporate your ideas and work to save us all time and make this place the best it can be.
I’d really appreciate whatever help I can get to make this place a better experience for everybody.
Thanks Jim. I can’t speak for JMPH but most of the stuff I’ve done has not been because I had a problem with how the site worked. It’s just been for my own education and fun.
HCO, Transgressive Herbivore - 17 January 2012 10:33 PM
Thanks Jim. I can’t speak for JMPH but most of the stuff I’ve done has not been because I had a problem with how the site worked. It’s just been for my own education and fun.
Yeah, exactly the same for me. I wanted to learn more about Greasemonkey and jQuery, and I saw an opportunity to monkey around a little with some code for fun. I certainly don’t want it to be interpreted as “that Jim sure is a lazy bum and won’t implement these features himself, so here you go!” I hope it hasn’t been interpreted that way.
HCO, Transgressive Herbivore - 17 January 2012 10:33 PM
Thanks Jim. I can’t speak for JMPH but most of the stuff I’ve done has not been because I had a problem with how the site worked. It’s just been for my own education and fun.
Yeah, exactly the same for me. I wanted to learn more about Greasemonkey and jQuery, and I saw an opportunity to monkey around a little with some code for fun. I certainly don’t want it to be interpreted as “that Jim sure is a lazy bum and won’t implement these features himself, so here you go!” I hope it hasn’t been interpreted that way.
I apologize that I wasn’t clear enough with my previous note. I am not taking this negatively at all. Believe me, I know the site has issues that need correction. I am just asking for help and feedback in pinpointing and then fixing the issues the best way possible.
I haven’t always had time to be as responsive and timely as I should be. It wasn’t because of a lack of desire; it was a lack of time due to my personal/work life. Right now, however, I have a wife encouraging me to take the time needed to accomplish the things I have been talking about wanting to do for the three years that she’s known me. She is encouraging me in good part because of the things site members have posted about the BBTF on Facebook. She recognizes how much the site means to so many people and knows how much it means to me.
So, please take this in the spirit that I intend, a thankful request for help and input on making this place as good as it can be.
OK, I updated Better Lounge on Chrome to handle the new layout of the Lounge. For Greasemonkey you can get it in the ZIP file linked above in the file better_lounge.user.js.
JMPH, we should probably get a source repo somewhere.
HCO, Transgressive Herbivore - 25 January 2012 09:17 PM
OK, I updated Better Lounge on Chrome to handle the new layout of the Lounge. For Greasemonkey you can get it in the ZIP file linked above in the file better_lounge.user.js.
JMPH, we should probably get a source repo somewhere.
Good idea. I’d be happy to let you set that up, since you’re more familiar with github and such than I am (since my familiarity with github is approximately zero). Just let me know what I need to do to start using it.
For easy maintenance, I think these are our requirements:
* One source JS file that we update, with scripts that generate Chrome and Firefox versions. It looks like you’ve structured it like this already, so that’s good.
* Easy linkable versions of each for easy install. Specifically for Firefox, being able to link directly to the .user.js file. Seems like we’d be able to do that easily with a setup like you have for the killfile. Not sure what the requirement would be for Firefox.
Let me know what your thoughts are. I’m excited to collaborate on this instead of duplicating efforts.
I’ve installed your scripts in my browsers. If you are interested and willing, I’d like to incorporate your scripts within the forum itself. One added advantage is I can allow visitors to turn on/off some of the functionality within their user profile. A second advantage is we can ensure that the scripts don’t get broken if the design changes.
I’ve installed your scripts in my browsers. If you are interested and willing, I’d like to incorporate your scripts within the forum itself. One added advantage is I can allow visitors to turn on/off some of the functionality within their user profile. A second advantage is we can ensure that the scripts don’t get broken if the design changes.
Just a thought.
I’m definitely open to that. Do let me know if you need anything from me to make it happen, and I’ll see what I can do for you.