问题
I need to create plug-ins/add-ons for IE, firefox and chrome browsers for the following requirement:
If the url requested is in a particular format/ matching a particular regex pattern, the plugin has to block the request and pop up and alert box.
I have searched a lot but did not find anything helpful. For IE, I think we can create BHO for this purpose. But is there a way to achieve this using javascript?
Thanks in advance.
Regards, Maggi
回答1:
Unfortunately, IE's addon development is still very arcane compared to Firefox and Chrome for the behavior you're trying to accomplish. You'll have to develop a BHO for IE whereas both Firefox and Chrome use Javascript as their addon platform.
http://www.enhanceie.com/ie/dev.asp is a great starting place for more information on how to develop extensions for IE.
来源:https://stackoverflow.com/questions/3264816/how-to-create-plugins-addons-for-firefox-ie-and-chrome