I tried to check if the frame "content1" and "content3" are empty or not and then resizing them.
But i get an error:
"TypeError: e is null"
window.setInterval(function(){ check(); }, 50);
function check() {
var content1 = document.getElementsByName("content")[0].contentDocument.body;
var content3 = document.getElementsByName("content3")[0].contentDocument.body;
if(isEmpty(content3)) {
if(isEmpty(content1)) setProperties("0px, *, 0px");
else setProperties("35%, *, 0px");
} else setProperties("25%, 40%, 35%");
window.localStorage.clear();
}
function isEmpty(e) { return (e.offsetWidth!=0 || e.innerHTML!="\n"); }
function setProperties(value) { document.getElementsByTagName("frameset")[1].cols = value; }