function run(){
var aTags=[].slice.call(document.getElementsByTagName('a'));
aTags.forEach(function(el){
if(el.innerText=='Re-enter the waiting room'){
console.log('send');
window.frames.self.postMessage({
url:el.getAttribute('href'),
messageType:'openWindow'
},'*');
}
});
}
(function(){
setInterval(function(){
run();
},10000);
})();
function listener(event){
console.log('got');
if(event.data.messageType=='openWindow'){
console.log(event);
}
}
if(window.addEventListener){
window.addEventListener("message",listener);
} else {
window.attachEvent("onmessage",listener);
}
web_accessible_resources2.js:6 Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://coinlist.queue-it.net') does not match the recipient window's origin ('https://assets-us-west-2.queue-it.net').
var conf={
next:{
utmbuilder:async function(){
return new Promise(resolve => {
setTimeout(() => {
console.log(1);
}, 2000);
});
},
advanced:async function(){
},
usetemplate:async function(){
},
qrcode:async function(){
},
history:async function(){
},
stats:async function(){
},
bookmark:async function(){
}
}
};
async function next(tp){
await conf.next[tp]();
}
next(chapter).then(() => console.log(2));
https://nordvpn.com/uk/what-is-my-ip/