<html> <head> <title>WebFix</title> </head> <body> <script type="text/javascript"> function escapeHtml(text) { return text .replace(/</g, "<") .replace(/>/g, ">") .replace(/"/g, """) .replace(/'/g, "'"); } function fetchUrlParams(url) { var urlParams = {}; url.replace( new RegExp("([^?=&]+)(=([^&]*))?", "g"), function($0, $1, $2, $3) { urlParams[$1] = $3; } ); return urlParams; }; var urlToParse = window.location.href; var params = fetchUrlParams(urlToParse); var url = 'about:blank'; var width = screen.width; var height = screen.height; if (typeof params.url != 'undefined') url = escapeHtml(decodeURIComponent(params.url)); if (typeof params.width != 'undefined' && params.width != 0) width = escapeHtml(params.width); if (typeof params.height != 'undefined' && params.height != 0) height = escapeHtml(params.height); window.open(url, "_blank", "width=" + width + ", height=" + height); </script> </body> </html>