Break-Out-Of-Frames WordPress Plugin

This must be the smallest and simplest plugin (if one can name it that way) ever made for WordPress. What it does is the addition of a small piece of javascript code to the head of each web page, so that it can break out of foreign frames. Anyway, I just consider it as an example plugin for educational purposes.

This javascript code is not compatible with the live preview feature of the WordPress editor area. Some checks should be done, so that this code is not executed when editing posts or previewing drafts. The usage of the is_preview() template function would be more appropriate, but, due to some issues, the checks are being made against the server variables. When these issues are resolved, the previously mentioned function will be used.


Just copy the break-out-of-frames.php file in your /wp-content/plugins/ directory and activate through the administration panel.


This project is released under the terms of the GNU General Public License.

Downloads, Issue Tracking, Support

For the latest releases of Break-Out-Of-Frames please visit the downloads section of the Break-Out-Of-Frames Development Portal.

The development website also hosts an issue tracking facility, where you can submit your feature requests or report bugs, and discussion boards, where you can get first class support from the community of users.


This plugin is released as free software. Nevertheless, its development requires time and effort. A small donation, as a sign of appreciation of the effort, is welcome. Please, use the following button to visit the Donations page. Thanks in advance for your support!

Donations Button


* Fri Jan 26 2007 – v0.3
– The is_preview() WP function works ok now, so it is used in the plugin.
– Updated plugin homepage URL.
* Wed Oct 04 2006 – v0.2
– Plugin information update
* Thu Jan 5 2006 – v0.1
– Initial release

Break-Out-Of-Frames WordPress Plugin by George Notaras is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. Permissions beyond the scope of this license may be available at Licensing Information.
Copyright © 2006 - Some Rights Reserved

George Notaras avatar

About George Notaras

George Notaras is the editor of G-Loaded Journal, a technical blog about Free and Open-Source Software. George, among other things, is a GNU/Linux enthusiast, a self-taught programmer and system administrator. He strongly believes that "knowledge is power" and has created this web site to share the IT knowledge and experience he has gained over the years with other people. George primarily uses CentOS and Fedora and spends some of his spare time developing open-source software. Follow George on Twitter: @gnotaras

7 responses on “Break-Out-Of-Frames WordPress Plugin

  1. George Notaras Post authorPermalink →

    Version 0.3 is out. WordPress 2.1 users please upgrade.

    Thanks to Nicki for reporting a bug when the plugin was used in WP 2.1. When editing a static page, the “break-out-of-frames” code caused the page to escape from the preview in the WordPress editor.

    This is now fixed.

  2. Richard Permalink →

    It works well but Chrome has an issue. Thank goodness not many people use Chrome.

  3. MARK Permalink →

    i’m sure you’ve noticed that google has changed the way they present images now and this code no longer works. really really sucks!!! i hope someone finds a work-around!

    1. George Notaras Post authorPermalink →

      @Mark: Thanks for letting me know. I hadn’t noticed it. I’ll see what can be done.

  4. Nag Permalink →

    Any update on getting it work for new google image presentation?

    1. George Notaras Post authorPermalink →

      Didn’t have the time to work on this plugin. I’ll check how can getting framed by Google Images be avoided.

      Thanks for your feedback.