vasi / firefox-dock-progress Goto Github PK
View Code? Open in Web Editor NEWDisplays a progress bar in the Mac OS X dock when files are downloading (deprecated)
License: MIT License
Displays a progress bar in the Mac OS X dock when files are downloading (deprecated)
License: MIT License
Dock Progress Extension (C) 2009 Dave Vasilevsky ----------------------- This Firefox extension displays a progress bar in the Mac OS X dock when files are being downloaded. Building -------- To build the extension for all supported platforms, you need the Mac OS X 10.4 and 10.6 SDKs, gcc 4.0 and clang. The easiest way to do get all of this is with a standard install of Xcode on 10.6 Snow Leopard. On 10.7 Lion, you can use various hacks to install Xcode 3 with PPC support and the 10.4 SDK. Make sure to install it under /Xcode3, so the build scripts will detect it. Licensing --------- This software is available under the MIT License. Thanks to Uli Kusterer (http://www.zathras.de) for the progress bar gradient, licensed under the MIT Licence. Todo ---- * Multiple progress bars * Throttle drawing?
Firstly, thanks for sharing this code, I'm a big fan, glad to see it going into core.
I run multiple firefox profiles simultaneously. It gets hard to tell them apart because they all have the same dock icon. I suddenly had a brainwave and I realised that I could use this plugin as the basis of a plugin to customise the dock icon from within the firefox profile. There are alternate methods, but they all involved duplicating the entire Firefox app and don't handle updates well.
I'm a developer, but no experience with C, so I've dug into the code and it looks like the FDPDrawBar function does the magic. But I'm not sure how to go about triggering this function just once on application load, instead of from downloads, and so on.
Would you be willing to point me in the right direction?
One option I considered was writing the profile name on top of the dock icon. That could be a useful plugin for people who use multiple profiles, as it'd make it obvious which profile was currently running.
Otherwise, even something like the progress bar but different colours, or an option to load an image from the profile directory and use it as the dock icon, these approaches would work. Having zero experience with Firefox / C development, I'm struggling to see how to fit all these pieces together.
I'd be very grateful for any insight / advice you can offer.
FireFox 6 disables plugin due to "unsupported code". Any chance to update?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.