阅读:6559回复:3
请教:如何禁用flash插件?
大家都知道,在firefox中可以安装载flash player插件,现在的问题是有的时候我不想显示flash,有什么办法可以禁用flash插件(除了adblock)
|
|
1楼#
发布于:2005-02-26 17:38
在userContent.css文件末尾找到/* ----BLOCK ADS---- */
3、在加上下面的代码 /* * Flash identifiers. */ object[classid$=":D27CDB6E-AE6D-11cf-96B8-444553540000"], object[codebase*="swflash.cab"], embed[type="application/x-shockwave-flash"], embed[src*=".swf"], object[type="application/x-shockwave-flash"], object[src*=".swf"] { display:none !important; } /* * Director identifiers. */ object[classid$=":166B1BCA-3F9C-11CF-8075-444553540000"], object[codebase*="sw.cab"], embed[type="application/x-director"], embed[src*=".dcr"], object[type="application/x-director"], object[src*=".dcr"] { display:none !important; } /* * Load flash files that are called directly by the browser without interference from flashblock. */ embed[name="plugin"] { -moz-binding: none; } 4、保存userContent.css文件 |
|
|
2楼#
发布于:2005-02-26 17:38
这个代码可以自由控制显不显示吗?
|
|
|
3楼#
发布于:2005-02-26 17:38
好像不行,但是为什么不用FlashBlock这个扩展呢?他可以将Flash显示为一个按钮,只有在你按这个按钮的时候才会播放Flash
|
|
|