I have tested the procedure below and it doesn't work. The script is properly inserted into every web page and no error is reported, but the pages don't resize. I made a simple page containing only this script and some text and it did resize properly, so the problem is not with the script itself (or with my other Proxomitron settings). Maybe someone who actually knows something about HTML and
JS and whatnot could check this out and see if they can figure out what the problem is. Anyway, here's what I did:
***
I found this script at
www.dynamicdrive.com. It's a short
JS that maximizes a new browser window when it's opened. What we need to do is find a way to put this into every web page.
We can do that with The Proxomitron by defining a new web filter. I think the easiest thing to do would be to put the script as the last item in front of the </head> tag, since then it would override (I think, at least) any other size script in the <head> section.
Our Proxomitron filter, then, should be:
"Matching Expression" = </head>
"Replacement Text" =
<script language="JavaScript1.2">
<!--
/***********************************************
* Auto Maximize Window Script- © Dynamic Drive (
www.dynamicdrive.com)
* This notice must stay intact for use
* Visit
http://www.dynamicdrive.com/ for this script and 100's more.
***********************************************/
top.window.moveTo(0,0);
if (document.all) {
top.window.resizeTo(screen.availWidth,screen.avail Height);
}
else if (document.layers||document.getElementById) {
if (top.window.outerHeight<screen.availHeight||top.wi ndow.outerWidth<screen.availWidth){
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}
//-->
</script>
</head>
We should leave "URL Match" blank since we want this to go into every page. We're not matching to wildcards, so we can leave "Bounds Match" blank too. And since there should be only one <head> section on a given page (shouldn't there?) we can leave "Allow for multiple matches" unchecked.
For a name, why not use "Maximize all browser windows"?
***