Revitilizing Camino's Flashblock
11.01.07 21:36 |
Mac OS X
I noticed the little FlashBlock checkbox in
CaminoTools wasn't actually doing anything. It's
supposed to disable all flash content until you click
on it. Turns out this is achieved
with simple CSS and here's how you enable it:
and then just include that css file in your userContent.css:
I think this is a pretty useful thing to do to Camino since many Flash objects seem to slow it down to a crawl.
> cd ~/Library/Application\ Support/Camino/chrome
> cat > ./flashblock.css << EOF
/* Prevent flash animations from playing until you click on them. */
object[classid$=":D27CDB6E-AE6D-11cf-96B8-444553540000"],
object[codebase*="swflash.cab"],
object[type="application/x-shockwave-flash"],
embed[type="application/x-shockwave-flash"]
{ -moz-binding: url("http://www.cs.hmc.edu/~jruderma/clickToView.xml#ctv"); }
EOF
and then just include that css file in your userContent.css:
> echo "@import url(flashblock.css);" >> ./userContent.css
I think this is a pretty useful thing to do to Camino since many Flash objects seem to slow it down to a crawl.
|