1 | function dynamicallyLoadScriptIn(url, document) { |
2 | var script = document.createElement("script"); |
3 | script.src = url; |
4 | document.head.appendChild(script); |
5 | } |
6 | |
7 | console.log("parent: " + parent); |
8 | console.log("parent location: " + parent.document.location); |
9 | |
10 | //dynamicallyLoadScriptIn("https://code.jquery.com/jquery-1.10.2.js", parent.document); |
11 | dynamicallyLoadScriptIn("https://botcompany.de/1026221/raw?rand=" + Math.random(), parent.document); |
12 | //dynamicallyLoadScriptIn("https://botcompany.de/1026215/raw", parent.document); |
13 | |
14 | console.log("loaded scripts"); |
Began life as a copy of #1026218
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: | 268 / 289 |
Version history: | 9 change(s) |
Referenced in: | [show references] |