-
Notifications
You must be signed in to change notification settings - Fork 2
/
test.html
29 lines (24 loc) · 986 Bytes
/
test.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<html>
<head>
<META HTTP-EQUIV="Access-Control-Allow-Origin" CONTENT="*" />
</head>
<body>
<iframe src="https://pol.is/78nfpz?parent_url=http%3A%2F%2Fwww.3plusx.de%2Fidc%2Ftest.html&referrer=" style="background-color: rgb(247, 247, 247);" id="polis_78nfpz" width="100%" height="100%"></iframe>
<script async='false' src='https://pol.is/embed.js'></script>
<script type = 'text/javascript'>
console.log("*** js called");
window.onload = function () {
var iframe = document.getElementsByTagName('iframe')[0];
iframe.style.border = 'none';
console.log("*** check for iframe");
var doc = (iframe.contentWindow || iframe.contentDocument).document;
doc.onload(function() {
console.log("*** iframe loaded");
// doc.querySelectorAll('.conversationViewRoot');
var social_div = doc.querySelectorAll('.POLIS_HEADLINE > div:nth-child(1)');
social_div.style.display = 'none';
});
}
</script>
</body>
</html>