Revitilizing Camino's Flashblock
Thu Jan 11, 2007 · 109 words

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:

> 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.


back · essays · credits ·