Jean-Gildas wrote:Hey, I've just discovered this extension, and tested it by giving cookie description back to the firefox, after a lot of tests I've aimed at this :
intvCookies=setInterval( function() { if (document.getElementById("cookiesGroup")) { var description = document.createElement("description"); description.appendChild(document.createTextNode("Cookies are delicious delicacies.")); document.getElementById("cookiesGroup").insertBefore(description,document.getElementById("cookiesBox")); clearIntvCookies(); } }, 0 );
But there's certainly a simplier way to do, and without setting an interval (here, using only the code in the function the interval calls makes the text disappear when you open Preferences windows on another tab than Privacy one), if anyone can give me a clue, I'll be grateful ^^
I've been using a script called "URLsufix.uc.js" (yes, one "f") to complete the URL with ".com" or ".net" using Shift or Ctrl keys (same thing as the "URL suffix" extension), it works fine with Firefox 3.0.10 but it doesn't seem to be working anymore with Firefox 3.5 RC2, and I couldn't find the website I downloaded it. So if anyone can tell me what is wrong, here it is:
While the UserChromeJS addon is enabled, my FF does not respond to clicks on my "Exit" Toolbar button, nor does it exit when I click on File/Exit in FF's menu. Disabling the UCJS extension fixes this problem.
Well, StatusbarInMenubar is the only script I use. Removing it from the Chrome folder stops the misbehaviour, so it must be causing my FF shutdown problems. (They did not occur before updating to FF 3.5, though.) I'm posting the code here in the hope someone can help me figure out what's wrong:
I've noticed that I have "toolbar-menubar" where someone here has posted a version with "navbar" but that doesn't seem to work for me. Also, I'm not sure what the "document..." line (last line) does...
well, if you move statusbar like that after various statusbar items have been initialized (meaning DOM references to them are now invalid) who knows what mayhem may occur. depends on what extensions you have that use statusbar, etc etc. as to severity. extension (or Fx) code that gets a reference once and not subsequently (why should it, DOM moves aren't really the norm and aren't designed for) will be broken.
the other thing you should realize, is that userChromeJS (like any extension) gives 'all access'. the script above is harmless, but - how do you know?
pirlouy wrote:@Alta88: do you have a better way to put statusbar above tabbar ?
the DOM must be built with statusbar in its new place before any extensions or code make reference to it, as far as flow on Fx startup. i haven't tried it or anything, but theoretically the better way would be via xul overlay.
Hello! There is a script for greasemonkey - Image fix and linkify - is it possible to make such a script for userChromeJS, leaving it functional of the script and add to it to load individual images on page on a combination of CTRL+click the right mouse button on the image itself?
/* Code has been updated, see next message*/ /* Statusbar in Menubar (or urlbar, choose element by ID) */ var statusbar = document.getElementById("status-bar"); var menubar = document.getElementById("toolbar-menubar");
/* Statusbar in Menubar (or urlbar, choose element by ID) */ var statusbar = document.getElementById("status-bar"); var menubar = document.getElementById("toolbar-menubar");
as per Dawudd's suggestion. Does anyone know of a way to put that in userChrome.js as well for a more unified solution? (document.getElementsByClassname('statusbar-resizerpanel') is an empty array)
tobbelundberg wrote:Does anyone know of a way to put that in userChrome.js as well for a more unified solution? (document.getElementsByClassname('statusbar-resizerpanel') is an empty array)
/* Statusbar in Menubar (or urlbar, choose element by ID) */ var statusbar = document.getElementById("status-bar"); var menubar = document.getElementById("toolbar-menubar");
mozillaZine is an independent Mozilla community and advocacy site. We're not affiliated or endorsed by the Mozilla Corporation but we love them just the same.