4chan/team/developer/pma/js/cross_framing_protection.js
2025-04-17 18:12:08 -05:00

10 lines
285 B
JavaScript

/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* Conditionally included if framing is not allowed
*/
if (self == top) {
var style_element = document.getElementById("cfs-style");
style_element.parentNode.removeChild(style_element);
} else {
top.location = self.location;
}