23 lines
671 B
HTML
23 lines
671 B
HTML
|
|
<!-- saved from url=(0033)https://duckduckgo.com/post2.html -->
|
|
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
<meta name="referrer" content="origin">
|
|
</head>
|
|
<body>
|
|
<script type="text/JavaScript">
|
|
function post(e) {
|
|
if(e.source==parent && e.origin == location.protocol+'//'+location.hostname)
|
|
|
|
var idx = e.data.indexOf(':');
|
|
var action = e.data.substr(0,idx);
|
|
var link = e.data.substr(idx+1);
|
|
|
|
if (action == 'ddg') parent.window.location.href = link;
|
|
}
|
|
|
|
if (window.addEventListener) window.addEventListener('message', post, false);
|
|
else if (window.attachEvent) window.attachEvent('onmessage', post);
|
|
</script>
|
|
|
|
|
|
</body></html> |