I'm writing a Firefox extension that needs to know what the username of the currently logged in user is in Windows, Mac, or Linux. So if I'm logged into my machine as "brh", it'll return "brh". Any idea how to do that from extension JavaScript?
...
I notice that Firefox 3 demonstrates this problem. I put down an overlay icon and play around with the map zoom. At certain zoom level, I found that the icon disappears for some unknown reason.
Zooming out brings back the icon. Or during the disappearance, I click on the Google Map and it will somehow trigger to bring back the icon.
I...
I'm trying to develop a firefox extension that inserts additional HTTP header fields into outgoing HTTP requests (to interface with an apache extension i'm concurrently developing).
While I understand the individual components of an extension and understand the basic tutorials that are presented on the web, I'm finding it difficult goin...
I want to use firebug to debug and help be quickly finish some XSLT layout issues, but I cannot get the following code to perform and display the client side XSLT in Firebox (everything is fine in IE):
$().ready(function() {
var oXMLHTTP
var oXSLT
if ($.browser.mozilla){
oXMLHTTP = document.implementation.createDocument(...
I'm hacking around in a Firefox extension, trying to use E4X. However, I've come across a weird problem:
var myXml = <test xmlns="http://test.com">
Hey
<inner>
Guys
</inner>
</test>;
var ns = myXml.namespace();
default xml namespace = ns;
this.log(myXml.*::inner);
this.log(myXml.ns::inner);
this.log(myXm...
I've seen a few programs (eg Charles Web Developer Proxy) that are able to modify Firefox's proxy settings. The sequence is:
Firefox is running, with the users proxy settings.
User starts the external third party application, which
modifies Firefox's proxy settings, and then
the user exits the third party program and,
Firefox resumes r...
I am attempting to implement a firefox extension which filters incoming HTTP responses and handles them accordingly.
I wish to block HTTP responses containing a specific header. Having read through some of the MDC articles, it appears the most common way of observing HTTP responses is by registering an http-on-examine-response observer....
I'm writing a sidebar extension for Firefox and need a way to get the URL of the current page so I can check it against a database and display the results. How can I do this?
...
There is a particular website I must use for work which is absolutely heinous and despised by all who must use it. In particular, the site's Javascript is fundamentally broken and works only in IE, which pretty much makes it the only site I must use outside my preferred browsers.
So, to the question. If I could 'patch' the javascript ...
The following Html works great for me in FireFox or IE7/8 (with or without the Style Tag)
<!-- Deliberately no DocType to induce Quirks Mode -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
Input.quirks
{
margin: 1px 0px 1px 0px;
border: solid black 1px;
...
I am building a Firefox Extension. I have a popupset that is shown when a toolbar button is pressed and also have working code to close the popupset manually.
The problem I have is that the popupset disappears whenever I click elsewhere. I would like to disable this automatic closure behaviour. I'm sure I've seen a popupset or panel att...
How can I get the url from a running instance of firefox using .NET 2.0 windows/console app? C# or VB codes will do.
Thanks!
...
I came across a strange behaviour when doing some regexes in Javascript today (Firefox 3 on Vista).
var str = "format_%A";
var format = /(?:^|\s)format_(.*?)(?:\s|$)/.exec(str);
console.log(format); // ["format_%A", "%A"]
console.log(format[0]); // "format_undefined"
console.log(format[1]); // undefined
There's nothing wrong with ...
I have an automatically generated XML file for the game that I run. It however apparently has an error.
The file is at: http://woarl.com/myXML.xml
And the error is apparently at line 520, here are lines 519-521
<type>Academy</type>
<typeid>23</typeid>
<completion>4</completion>
Any ideas as to what the error is?
...
I have this code:
var $msg = jQuery('<div></div>')
.hide()
.appendTo(document.body)
;
if ($msg.is(":hidden")) {
console.log("hidden");
} else {
console.log("visible");
}
When run, it logs "hidden" on Firefox, but "visible" on Google Chrome. Is this a bug, or am I doing something wrong?
...
Hello!
How is it possible to open FireFox browser by Ruby(for automation script)?
I use @browser = RSpecSeleniumHelper.connect_browser('/admin/', '*firefox'), but it doesn't work.
...
I have the following line of code in a link on my webpage:
<a href="javascript:$('#comment_form').toggle('normal')" title="Comment on this post">
This produces a link that should pop open a hidden form. It works on Safari, but in Firefox, I just get an almost-empty page with nothing but the following text:
[object Object]
I'm sure ...
I'm having to open the firefox error console, which is kind of annoying.
...
I've encountered posts which have stated, "I'd love to use Extension A but it doesn't work with Extension B". Is this something that I need to be concerned about when building a Firefox extension?
What are some of the common reasons for extensions to conflict with one another? What are the best practices to ensure that my extension play...
In my test, I have 2 spans both set to display:inline-block with a border for visibility. Firefox renders space between each span. Even setting margin:0;padding:0; doesn't do anything to fix this. My expectation when setting the inline span element to display:inline-block is that the 2 spans render flush against each other, as if you flo...