Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

14
LINES

< > BotCompany Repo | #1026227 // IPTV Load Chat Bot In Parent Of IFrame

Document

function dynamicallyLoadScriptIn(url, document) {
  var script = document.createElement("script");
  script.src = url;
  document.head.appendChild(script);
}
  
console.log("parent: " + parent);
console.log("parent location: " + parent.document.location);

//dynamicallyLoadScriptIn("https://code.jquery.com/jquery-1.10.2.js", parent.document);
dynamicallyLoadScriptIn("https://botcompany.de/1026221/raw?rand=" + Math.random(), parent.document);
//dynamicallyLoadScriptIn("https://botcompany.de/1026215/raw", parent.document);

console.log("loaded scripts");

Author comment

Began life as a copy of #1026218

download  show line numbers   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1026227
Snippet name: IPTV Load Chat Bot In Parent Of IFrame
Eternal ID of this version: #1026227/10
Text MD5: 4457d372433a092b1da610b1b9099cfc
Author: stefan
Category: javascript
Type: Document
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-12-09 14:55:19
Source code size: 571 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 150 / 252
Version history: 9 change(s)
Referenced in: [show references]