[edit: After this fix the bar will still bleed (sometimes?), but ONLY when visiting EC blogs. This has to do with the way the menus are being populated. I will continue working to find answers on how this can be fixed, but for now this is the best we can do. Nonetheless, this is better than normal.]
[edit 2: If you run into the problem you had before, be sure to change the && to ||. I forgot to change it originally in the blog post.]
This has been one of the most frequently requested ‘features’ of the Entrecard toolbar. Basically, the Entrecard toolbar ‘bleeds’ by still displaying some text when turned off. Until now, the requests have gone unanswered. But, today is your lucky day. If you follow these directions you can fix the problem and have no more bleeding!
This should work for all versions of the toolbar, but has only been tested on the non-beta version.
Steps:
- Find the extensions folder inside your Firefox profile.
Windows 2000/XP/Vista/ location: %APPDATA%\Mozilla\Firefox\Profiles\xxxxxxxx.default\
Windows 98/ME location: C:\WINDOWS\Application Data\Mozilla\Firefox\Profiles\xxxxxxxx.default\Mac OSX location: ~/Library/Application Support/Firefox/Profiles/xxxxxxxx.default/
Linux location: ~/.mozilla/firefox/xxxxxxxx.default/
- Open the folder titled “ec_toolbar@entrecard.com” then “chrome”
- Go inside the .jar file. You may need to download 7-zip or another unzipping utility (if you are on linux, use Archive Manager). DO NOT UNZIP THE FILE! Simply browse the archive.
- Open the “content” folder.
- Open file titled “ec_toolbar.js” with a text editor (gedit or notepad is preferred) DO NOT USE WordPad, OpenOffice or MSWord!
- Go to line 822.
It should look like this:
if ((current_url.indexOf('entrecard.com',0) == -1) && com.entrecard.toolbar.config.get('hide_non_ec')) {
document.getElementById('com_entrecard_toolbar_elements_toolbar').style.display = 'none';
}
return;
}
document.getElementById('com_entrecard_toolbar_elements_toolbar').style.display = '';Change it to:
if ((current_url.indexOf('entrecard.com',0) == -1) || com.entrecard.toolbar.config.get('hide_non_ec')) {
document.getElementById('com_entrecard_toolbar_elements_toolbar').style.display = 'none';
}
return;
}
document.getElementById('com_entrecard_toolbar_elements_toolbar').style.display = '-moz-box'; - Save the file and close it. You will be prompted to update the archive, click yes.
- Close Firefox (if open) and open it back up.
The changes are made and everything should be fixed!
Congrats!
Tell your fellow ECers, but please be sure to link back here to give me credit!
Written: May 1, 2009




















sixmats

May 2, 2009 @ 7:16 pm
It’s amazing that you and not Entrecard fixed it.
Maybe you could fix the whole site while you’re at it.
Gary R. Hess

May 2, 2009 @ 8:34 pm
Hah. Well, I’m sure a lot of people would be mad at me if I had my way. I wouldn’t put up with a lot of stuff that goes on over there. I would definitely do things differently, but I know people would not like what I have in mind (in terms of taking care of the community). Constructive feedback is fine, but name-calling, talking about someone who was banned months and months ago, allowing banned members in to criticize, etc. would be a huge no-no for me. I would definitely have the general discussion open for EC members, but it would be heavily moderated-anything EC related would be deleted.
As for the design, well, many of us old-timers offered to help with it, but Graham never took us up on it. I’m not sure how well people like my web designs anyway (this site for example).
As for the scripts, well, a lot of the problems they have is hardware and not the scripts. I don’t have much experience dealing with large servers anyway.
As for everything else, I think a lot of it has to do with Graham and Phirate not being able to focus on EC. I’m pretty sure Phirate has a day job and isn’t able to do much most of the time. As for Graham, he has other things going for him ATM and I think EC is just there. I’m not 100% anyway.
I know your reply was mostly in jest, but I doubt people would like my way of handling things anyway
Master And Student

May 2, 2009 @ 7:55 pm
That was a really good fix, everything is fine now.
Gary R. Hess

May 2, 2009 @ 8:38 pm
Thanks. After having it work for me, I went ahead and tested it again on another install then on Windows just to make sure everything was alright.
vanudin

May 2, 2009 @ 8:27 pm
But, I’m not find any change’s here.
Gary R. Hess

May 2, 2009 @ 8:41 pm
The changes are in red. Just go to line 822 of the file and go from there. If it isn’t on line 822 you probably are using the Beta version of the toolbar so it would be somewhere else. Just be sure to press ‘update’ afterwards and restart Firefox.
Ratty

May 2, 2009 @ 9:02 pm
Nice one. I’ve been looking at your other EC posts, and it looks like you know your stuff. Do you know if there is a fix for the toolbar not retaining it’s settings, like the name and password?
Gary R. Hess

May 2, 2009 @ 9:34 pm
It should do that already. But just in case, try right clicking on the toolbar and go to preferences. Then check ‘login on start up’. If that doesn’t work then there may be something wrong with your Firefox settings.
Sometimes the toolbar does forget passwords, but I think that is mostly a cookie problem with Firefox.
Suburban Survivalist

May 2, 2009 @ 10:17 pm
Wonderful! Looks like it has worked for me. I’ll give it some time to be sure that the problem does not return. Thanks!
Gary R. Hess

May 2, 2009 @ 10:47 pm
After a day of use in Ubuntu the problem returned for me. I’m checking it out right now, it might be some weird cache problem, I don’t know. I’ll continue to check it out.
Gary R. Hess

May 3, 2009 @ 1:14 am
The problem has to do with the way the menus are being populated. If you visit an EC site it will bleed, otherwise it will be fine. I will try looking for the answer later, I imagine it has to do with the same small code (either the positioning of the if or the indexOf).
For now though, I forgot to change the && to || within the post, so you can try that if the problem returns.
Tina

May 3, 2009 @ 10:33 am
good info for people that use it
i tried to install it once, but my firewalls or something stopped it from doing it
Jan from BetterSpines

May 3, 2009 @ 3:21 pm
Why can’t you fix the problem at the source, so that it downloads with your modifications? I’m not game to play with that kind of stuff. Also, even though I’ve got it set to open only 5 tabs, it still opens 10; they take forever to load! How can that be fixed?
Gary R. Hess

May 3, 2009 @ 4:25 pm
Me offering the entire source for download is against the terms of agreement/copyright and requests of Phirate.
As for it taking forever, there isn’t anything you can do with that unless you mess with the cache of the toolbar-which I’m not about to go into or even know if that is possible on our end.
What you can do, is fix the settings of Firefox. If you have prefetch turned on, go ahead and turn it off. You can also raise the amount of browser cache and memory usage. Firefox is a slow browser since around version 1.5 and if you run Linux or Mac instead of Windows it is even slower. I’ll write a post about speeding it up and hopefully have it up tomorrow for you.
You seem to not like messing with code, so you probably won’t want to mess with your browser’s settings either. If that is the case, then there is absolutely nothing you can do about the slowness.
sixmats

May 6, 2009 @ 9:14 pm
My comment was in partial jest, but it is also a serious problem there.
Cynthia

May 7, 2009 @ 11:27 am
Geez what a pain. I am going to leave it uninstalled until they fix it.