PageSourceSearch

https://storyweaver.org.in/iframe.js

js storyweaver.org.in collected 2026-10-01 10:11:14 UTC 979 bytes, 20 lines download raw bytes

1function inIframe() {
2  try {
3    return window.self !== window.top;
4  } catch (_0x1e66e0) {
5    return true;
6  }
7}
8
9window.onload = function () {
10  var whitelist = ['mykidsdrawing.in', "ndl.iitkgp.ac.in", 'https://ndl.iitkgp.ac.in', "resources.educationaboveall.org", "educationaboveall.org", "https://resources.educationaboveall.org"];
11  // Check if ancestorOrigins exists and has at least one entry before accessing
12  var ancestorOrigin = window.location.ancestorOrigins && window.location.ancestorOrigins.length > 0
13    ? window.location.ancestorOrigins[0]
14    : null;
15  var isSameOrigin = ancestorOrigin === window.location.origin;
16  if (inIframe() && ancestorOrigin && !isSameOrigin && !whitelist.includes(ancestorOrigin) && !window.location.href.includes("/stories/embed")) {
17    window.location.href = "/errors/error_500";
18    window.alert("Hello! For enquiries about embedding StoryWeaver via an iFrame, do get in touch with us at [email protected]");
19  }
20};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.