Skip to content

Categories:

如何手工禁止在IE中播放Flash

flash现在几乎完全变成网络广告的母体了,而用低配置的机器上网时,flash所对系统资源的消耗特别明显,特别是象sina这样的站点,打开news.sina.com.cn能看到N多flash的广告.禁用这些flash广告也就可以降低上网浏览时对系统资源的消耗,同时不下载flash也减少网络流量提高了上网速度.

虽然在IE的安全级别里可以设置是否禁用ActiveX 控件,但是此方法打击面太广.而在Maxthon里面有设置,可以直接选择是否禁止在IE中播放 Flash.但是不是每个人的机器上都装了Maxthon的.那怎么办?呵呵,监控maxthon的注册表读写可以发现,问题的关键就在下面这个键:“HKEY_LOCAL_MACHINESOFTWAREMicrosoftInternet ExplorerActiveX Compatibility{D27CDB6E-AE6D-11cf-96B8-444553540000}”下面的“Compatibility Flags”
启用flash时是:“dword:00000000”
禁止flash时是:“dword:00000400”

OK.导出,得到flash.reg.随时修改“Compatibility Flags”的值来允许/禁止播放Flash.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINESOFTWAREMicrosoftInternet ExplorerActiveX Compatibility{D27CDB6E-AE6D-11cf-96B8-444553540000}]
"Compatibility Flags"=dword:00000400

Posted in 技术.


0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.



Some HTML is OK

or, reply to this post via trackback.