Force the wiki out of frameset thieves
authorBrion Vibber <brion@users.mediawiki.org>
Tue, 2 Mar 2004 02:22:44 +0000 (02:22 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Tue, 2 Mar 2004 02:22:44 +0000 (02:22 +0000)
stylesheets/wikibits.js

index 155e060..f4dbaa7 100644 (file)
@@ -1,5 +1,8 @@
 // Wikipedia JavaScript support functions
 
+// Un-trap us from framesets
+if( window.top != window ) window.top.location = window.location;
+
 // for enhanced RecentChanges
 function toggleVisibility( _levelId, _otherId, _linkId) {
        var thisLevel = document.getElementById( _levelId );