![]() |
|
[Req] Stop resizing and menu removal in JS - Printable Version +- The Un-Official Proxomitron Forum (https://www.prxbx.com/forums) +-- Forum: Proxomitron Filters (/forumdisplay.php?fid=38) +--- Forum: Filter Help/Request (/forumdisplay.php?fid=31) +--- Thread: [Req] Stop resizing and menu removal in JS (/showthread.php?tid=647) |
[Req] Stop resizing and menu removal in JS - skiahh - Oct. 24, 2005 07:58 PM Hi - I need to register on a site but their link for registration resizes my browser to full screen and removes the menu bar (File, Edit etc). I can manually resize, but it just bugs me that they do this. Site: http://www.mytricare.com Link is on the left side where it says "Register Now". JS code, as far as I can tell is: <html> <head> <link rel="stylesheet" type="text/css" href="/stylesheets/tricare.css"> <title>myTRICARE.com: myTRICARE claims [Authentication]</title> <SCRIPT language="JavaScript" src="/common/gDomain.js"></SCRIPT> <SCRIPT language="JavaScript" src="/common/webtrends.js"></SCRIPT> <script language="JavaScript" src="/browserDetection.js"></script> <SCRIPT language="JavaScript"> var is = new Is(); function im(site, bIsMaximized) { var iStartX = 0; var iStartY = 0; var iWinWidth = 0; var iWinHeight = 0; if (bIsMaximized == true) { iWinWidth = screen.availWidth - 10; iWinHeight = screen.availHeight - 48; if ((navigator.appName.indexOf("Netscape") >= 0) && (navigator.appVersion.indexOf("5")>=0)) { iWinWidth = screen.availWidth - 6; iWinHeight = screen.availHeight - 41; } } else { iStartX = parseInt((screen.availWidth - 691) / 2); iStartY = parseInt((screen.availHeight - 500) / 2); iWinWidth = 691; iWinHeight = 500; } if (iStartX < 0) iStartX = 0; if (iStartX < 0) iStartX = 0; if (navigator.appName.indexOf("Microsoft") != -1) { thewindow=window.open(site,"thewindow","width=" + iWinWidth + ",height=" + iWinHeight + ",resizable=no,scrollbars=yes,status=yes,left=" + iStartX + ",top=" + iStartY); } else { thewindow=window.open(site,"thewindow","width=" + iWinWidth + ",height=" + iWinHeight + ",resizable=no,scrollbars=yes,status=yes,screenX=" + iStartX + ",screenY=" + iStartY); } return thewindow; } </SCRIPT> I might be able to figure it out eventually, but I know there are many smarter people out there that probably can just look at it and know the answer, so I'm throwing it to you! Thanks! - Kye-U - Oct. 24, 2005 08:58 PM Try this filter to remove the javascript call in the link. ![]() Code: [Patterns] |