Blocking Flash in Camino has been an On/Off affair until recently. Camino browser had implemented the FlashBlock software directly into its browser, but unfortunately, it didn’t have a whitelist where you can specify sites to allow Flash to run. So you either blocked Flash from all sites or no sites.
Although this is still the case, there is a hack that allows you to create a whitelist of sites where Flash should still be enabled. The hack is reproduced here:
Create a userContent.css file within the Camino Application Support “chrome” directory. Open up a Terminal window (found under Applications/Utilities) and enter:
cd ~/Library/Application Support/Camino/chrome
touch userContent.css
If you’ve got Textmate
mate userContent.css
If not, go into Finder, find the above “chrome” directory underneath your “Home” directory (usually your login name) and open the userContent.css file by Cmd-Clicking or two finger tap “right clicking”, Open With > Other > TextEdit.
Paste in the following code:
@-moz-document domain(youtube.com), domain(google.com)
{
object[classid*=":D27CDB6E-AE6D-11cf-96B8-444553540000"],
object[codebase*="swflash.cab"],
object[data*=".swf"],
embed[type="application/x-shockwave-flash"],
embed[src*=".swf"],
object[type="application/x-shockwave-flash"],
object[src*=".swf"]
{ -moz-binding: none !important; }
}
Notice the YouTube.com and Google.com domains within “domain()”. Add more of those with the domain of sites you want to allow Flash to run. This is your whitelist of sites where Flash is permitted to run.
After this, save the userContent.css file and shut down Camino completely (Cmd-Q) and restart it. Then go into Camino Preferences > Web Features > Block Flash animations, check this tick box.
Now try opening up YouTube.com and you should see the page working as normal. All Flash based videos should still work. Now try out a site with an obscene amount of Flash Advertisements like http://bloomberg.com. Where the Flash ads would be normally you should see the Adobe “f” instead.
If this doesn’t work for you, make sure you named the file correctly “userContent.css”, put it in the right directory “~/Library/Application Support/Camino/chrome”, and have completely shut down Camino (not just its windows, but truly Quit the program), and restarted, and that you’ve turned on the Block Flash animations option under Web Features in Preferences.
The above hack was kindly provided by Camino at http://caminobrowser.org/documentation/annoyances/
Leave a Reply