thats the code I used to break a specific site out of a frame. basically it checks to see if the sit rendered is a frame, if it is redirect to the site without the frame attribute enabled. It also makes the text green to let me know that the site has been jailbroken.
Id be interested in making a script that seaches for iframes and gives me the site within, if multiple iframes are found, ask the user which one he'd like to go to.
If you plan to use this on a mastering astronomy assignment, just copy the code as a url on a bookmark... you'd have to make a bookmark of a normal site, then edit the bookmark so you can paste this code on the url field... don't ask why, its a bug. speaking of which, I have one on my monitor.