I've written a GM script that works fine under FF 3.x, but which broke
after upgrading to FF4. There are no error messages or indications of
why FF4 broke this functionality. I saw the reference to the
about:blank workaround on the main page but that didn't seem to help
(at least the way I tried it).
Code opens a pop-up window to act as a "control panel" of sorts for a
web site's functionality. based on the site page you visit, the
control panel functions change. After upgrading to FF4, the popup
window still opens, but nothing written to childWin or its elements is
shown in the window.
Code is as such:
var childWin = getChildWin();
CPHeader = childWin.document.getElementById('CWHeader')
CPButtons = childWin.document.getElementById('CWButtons')
CPContent = childWin.document.getElementById('CWContent')
CPFooter = childWin.document.getElementById('CWFooter')
CPHeader.innerHTML += "All your base are belong to us<br>";
function getChildWin() {
var myWinLocX = window.screenX;
var myWinLocY = window.screenY;
var myWinSizeX = window.outerWidth;
var myWinSizeY = window.outerHeight;
var desktopSizeY = screen.height;
var desktopMaxX = screen.width;
var desktopMinX = screen.left;
var newX, newY;
newY = myWinLocY;
var pWin = window.open("","AECPANEL",
"toolbar=no,menubar=no,width=350,height=400,resizable=yes,scrollbars=1");
if (myWinLocX - 350 > desktopMinX) {
newX = myWinLocX - 350;
}
else {
newX = desktopMinX;
}
pWin.document.body.innerHTML = "<body> \
<div id=CWHeader style=\"height:30px; text-align:center\">Control
Panel Header</div>
\
<div id=CWButtons style=\"height:60px\"></div> \
<div id=CWContent style=\"height:200px\"></div> \
<div id=CWFooter style=\"height:30px;\"></div> \
";
return pWin;
--
You received this message because you are subscribed to the Google Groups
"greasemonkey-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/greasemonkey-users?hl=en.