extension

Finding mac window id/number from firefox

Is there any way to figure out a firefox window's ID ("windowNumber") on mac OSX from within firefox? Either via JavaScript (unlikely) or XPCOM code. I can easily enumerate the NSWindows but I can't figure out a way to connect the dots between a firefox DOM and the platform specific window. For clarity: I need some way to talk to the Ja...

How to check with Javascript if a Firefox 3 Add-on / Extension is installed

Actually this question is based on a Blog Entry, which discusses the topic for FF2. But how does this work with FireFox 3? I know that there must be a workaround, because recently I visited a site saying: "Please disable AdBlock+ before entering this site" :( ...

How can I make my Firefox extension toolbar button appear automatically?

I've created a firefox extension that consists of a toolbar button. How can I set it up so that when my extension is installed, the button automatically appears in the main toolbar. I don't want my users to have to go to the customize toolbar menu and drag my button over. ...

Problems with using nsIURIContentListener in Firefox Extension

I am developing a small extension that has to redirect certain URLs to another Site. It's working fine, except for one situation: if open the Link with "Context-Menu -> Open in new Tab", the current page is redirectet to my page and a second tab opens with the link that should be redirected. What am I making wrong? Is there a better way ...

Extension Methods for Indexers, would they be good ?

Extension Methods for Indexers, would they be good ? I was playing around with some code that re-hydrates POCO's. The code iterates around rows returned from a SqlDataReader and and uses reflection to assign properties from column values. Down my call stack I had a code a line like this :- poco.Set(“Surname”, “Smith”); // uses exten...

Launching OpenOffice filters from a menu/toolbar button

I have packaged an XSLT export filter for OpenOffice as per the instructions on this page: http://wiki.services.openoffice.org/wiki/Filter_extensions It works fine; but in order to be used, the user has to select the command 'File/Save as' then choose the correct file extension that triggers the use of the filter, and a target file n...

Integrating models and views in new Sinatra extensions

So I would like to use the new possibility to create extensions for Sinatra. My Extension needs to integrate a model and some views/templates but I don't know how to or where to integrate them? Did anybody already built something more complex than the example from the documentation? ...

ThreadContext property does not write to AdoNetAppender

I am using log4net 1.2.10.0. I have extended ILog and LogManager to include a new level, 'AUDIT'. I want to use an AdoNetAppender to log the %message to a database. I need other information logged and I tried using log4net.ThreadContext.Properties. I get no output when I try to use a context property as a value for a SQL parameter. <lo...

Folder "drop box" with custom behavior

I'm thinking of trying to create a "drop box" application that can automatically organize files as you drop them into a folder. I always end up with a bunch of random files on my desktop, and I think it would be useful to be able to drag them onto an icon/folder on the desktop and have them automatically sorted into other locations base...

How to get Basic Authentication Information in a Firefox Extension?

I'm coding a Firefox extension and want to get Basic Authentication information for a website (or for the current document). How can I get Basic Authentication Information in a Firefox Extension? ...

java eclipse-plugin : menuitems appear in windows but not on linux

I am extending the tools menu with my own action cmds using the below line in the plugin.xml ... <extension point="org.eclipse.ui.menus"> <menuContribution locationURI="menu:org.eclipse.ui.main.menu?after=edit"> <menu id="geditorToolsMenu" label="T&amp;ools" ...

Dynamic use of a class method defined in a Cython extension module

I would like to use the C implementation of a class method (generated from Cython) if it is present, or use its Python equivalent if the C extension is not present. I first tried this: class A(object): try: import c_ext method = c_ext.optimized_method except ImportError: def method(self): retu...

How to use php function without load source file ?

I would like to use my function, for example DebugR(), but I don't want to use a require or include (with include_path) to load the function file that contains the source. I know I could use an autoload, but this action must be generic in my php configuration. I think I must create a PHP extension, but is there another way? ...

In a firefox extension how to save a copy of a pdf opened in the browser window

I have a Firefox extension and in some cases when a user navigates to a PDF I'd like to save a copy of the file. This is easy when the PDF is downloaded (as I can use nsIObserverService to get the file), but when the PDF is opened in the browser using the Adobe Reader plugin I can't see how to get the file without downloading it again. A...

inner join inside extension method (linq)

I am trying to write an extention method for a repository. The repository has a method IQueryable<parent> GetAll(). I want to create an extention method FilterByChildId(int childId) so that I can write: List<parent> data = from d in repository.getAll().FilterByChildId(33).ToList() Not sure how to do the join on the parent and child i...

Firefox extension to write a script in a web page

Hello! I am new to firefox extension building and would like some help on an application I am creating. I would like to create a firefox extension that on choosing to activate the firefox extension, opens a new tab and sends the script to the page to display a certain amount of text or perform some sort of activity. The only problem wit...

Possible to remove extentions on php pages?

When I go to some websites I notice that there is no file extension on the page. Actually, this site is a proper example. Anybody know how this is done? :] ...

How to create hidden Firefox Extension?

Is it possible to create Firewox extension that will not shown in Extensions List? And so cannot be deinstalled manually? ...

Extension Mapping problem in asp.net (C#)

Hi all, I'm rebuilding a site for a client at the moment. The current site is in classic asp, the rebuild is in asp.net 3.5. However, the client is insisting that all the page names remain exactly the same as he is afraid of losing his google ranking (which is currently pretty good). So, I'm trying to get ASP.Net to allow me to use ....

Extending the html schema

I'm trying to create a templating engine not too synactically far from ASP.net WebForms. I want the markup to look like this: <ext:Templates xmlns:ext="http://www.myschema.com/" xmlns="http://www.w3.org/1999/xhtml"&gt; <ext:Template name="Template1"> <div id="someid" style="display:none" ext:extendedAttr="someValue"> ...