possible help?
|
|
I have been trying for quite some time to get a script to work correctly. I have a script posted on here for Facebook with Fluid. It brings back the dock badges for new messages in your inbox. The script works, but its buggy. One major bug is that when you have zero new messages, the badge still shows with the number zero and won't go away. Nothing I try seems to work. :( I have also been trying to get it to work with notifications with no luck. I'll admit that I am a complete noob to scripting. You think you could help? Thank you,
|
|
|
Hello, i don't have a Facebook account, so i can't really try it out. Sorry for the time to reply, didn't get any notification about post :/. Anyway, are you sure that "if (notice_divs.length > 0)" notice_divs_length at any given time is higher than 0? Try playing with some "alert" functions to seer if the code is getting there. Try this:
if (notice_divs.length > 0) {
new_post_html = notice_divs[0].innerHTML;
count = new_post_regex.exec(new_post_html)[0];
if(count > 0)
window.fluid.dockBadge = count;
else
window.fluid.dockBadge = "";
}
|