Creating options page for BHO - bho

I am creating an IE browser extension using BHO,
I would like to create an option page like the on chrome or firefox.
I want this page to be accessible using manage add-ons page like it works in chrome and firefox. Is it possible? how do I do that?
I am using visual studio ATL and c++

Your Best Best is adding Context Menu or Tools Menu Item.
Basically There is no Standard IE Options Dialog that you can merge your stuff into.
you are gone have to have your own dialog.
as a warning starting with IE10 and IE11. your IE-Addons (BHO,Menu,Toolbar,DeskBank) will not have any access to registry or file system.
if you need to save some stuff. you are gone have to probably create a broker process.
for instance you need to create a windows service that listen on a socket (maybe some random port) and yo you can communicate with it from your options dialog on what to save and what to read.
Inserting context Menus into IE
Inserting Menu Options

Related

NSIS page with a list of opened browser windows

Is there any standard way (or existing plugin) which allows to create a page in NSIS installer package and display there all existing browser windows. Something with the possibility of closing all browsers before proceeding with an installation.
Thanks.
The LockedList plug-in can display a list of running processes, this is probably your best option. The other alternative would be to look for specific windows classes and then you are on your way into undocumented land...

Add a “Open with Firefox” contextual menu in IE11

Here's my question. We've set IE11 as the default browser for all our Windows PCs (company policy) but we need to use some specific web applications that are only working with Firefox.
Does anyone know a way or a "trick" to add a "Open With Firefox" contextual menu in IE11 or even better to open some specific URLs with Firefox when clicked from Outlook or (probably more difficult) IE11 ?
Any help is welcomed.
Here's a reference in MSDN which adds a new option to the context menu:
https://msdn.microsoft.com/en-us/library/bb735853%28v=vs.85%29.aspx
It's an old reference but will most likely work in your version of IE. The example shows adding a menu for what was Bing back then ("LiveSearch") and searches for the currently highlighted text.
In your case, you will have to set the key value of HKCU\Software\Microsoft\Internet Explorer\MenuExt registry entry with the physical path of Firefox and change the sample JavaScript code to pass the highlighted text as a parameter to Firefox.
One thing to take note though, this may no longer be supported for future versions of IE - if Microsoft decides not to kill it with Microsoft Edge (formerly Project Spartan) totally.

How to bind refreshing Aptana's internal web browser to a keystroke?

Looking through Preferences --> Keys, I don't see any option for refreshing the internal web browser that I can bind a keystroke to. While there is a "Refresh" option bound to F5, it's for the file view, not the browser. As I'm working with Sinatra (and "Reloader"), once the Webrick server is started "Run" really just involves refreshing the browser view, so I would like to be able to do so without having to mouse over to the browser window.
As I'm new to Aptana (I've used Eclipse way back when, but in a different life), perhaps I'm looking in the wrong places but all my searches have been for naught at this point.
There should be a shortcut, for php developers it would be a miracle like F9 in a compiled language ide enviroment.

Modify contents of Firefox download dialog from add-on kit

I'd like to be able to add an option to the download dialog that pops-up in Firefox when starting a file download. Is it possible to do so using the new add-on SDK or do I have to do it the old way?
edit: Obviously, if the new option is selected, I need a way to know it and execute code based on it.
That's something you would use XUL overlays for. I guess that the dialog you are talking about is chrome://mozapps/content/downloads/downloads.xul - the download manager. AFAIK doing this isn't possible with the Add-on SDK, it only provides the most common UI integration points. You could create a traditional extension however, it can overlay any dialog.
There is no existing module that will help you that I know of, so you would have to create one, or wait for one to be made by someone else. But the main idea to extending browser UI is simple, and goes like this:
When the addon is loaded, scan for open windows of the type that you wish to extend.
extend the open windows by adding xul elements and javascript to the page.
listen for newly opened windows, and test that they are the type that you are looking for once they open
extend newly opened windows while your addon is active
Clean up after yourself when windows close or when your addon is disabled/uninstalled.
The last step is the most important and never matter with old school extensions which were not restartless.
Some for the built-in modules that you can look at that do this are the widget module, the context menu module, and the hotkeys module, all of which you can find here.
I've made a couple myself which are the toolbar button module, the xulkeys module, the menuitems module, and a few others, all of which you can find here.
Recently I wrote an extension do the same things. A bootstrap extension, not using addon-sdk.
I already submit it on AMO, but wait for review
https://addons.mozilla.org/en-US/firefox/addon/download-dialog-tweak/
And the source code
https://github.com/muzuiget/download_dialog_tweak

How to add UI elements from a bootstraped Firefox addon

I am writing a Firefox addon for Firefox 4 which allows you to create bootstraped addons (addons that do not require a restart of the browser), however, they do not allow you to use XUL to create UI elements.
What is an easy way to create UI elements in places like the tools menu (with JavaScript), and how do I make my addon open a new window to interface with the browser?
It's not easy right now. You need to keep track of browser windows as they open and close and add your UI to each window manually via DOM APIs
See how it's implemented in the Addon (formerly Jetpack) SDK: https://github.com/mozilla/addon-sdk/blob/master/packages/addon-kit/lib/widget.js#L215 (browserManager, in case the line numbers change).
The Mozilla Add-on SDK which is also known as JetPack has evolved to the point where it can be used to create entire add-ons. Not only are the add-ons fast and simple to create, but they are also restartless.
The best way to add UI elements with the SDK is to use the Widget API which will easily allow you to add an icon to the status bar. There are also other APIs for the context-menu and creating panels.

Resources