Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- OG: https://gist.github.com/eculver/267327
- MOD: https://gist.github.com/kdahlhaus/3f7c803f7e147d6c28951d927c998df4
- MINE: https://gist.github.com/kawiesh/ee489b18b11c0f461f446fd9ca2d34a6
- ......
- let a= location.href;
- let b= prompt('enter time');
- setInterval(function(){
- let called=false;
- let y= 0;
- if (called) y = window.frames[0].scrollY;
- else{
- y= window.scrollY;
- called=true;
- }
- let c= window.open('','_self');
- c.document.write(`<iframe src="${a}"
- style="top:0;left:0;
- width:100%;height:100%;
- position: absolute;
- border:none"></iframe>`);
- },1000*b);
- ....
- let a= location.href,
- b= prompt();
- if(b>0){
- setInterval(function(){
- let c= document.createElement('iframe');
- c.src= a;
- c.style.top=0;
- c.style.left=0;
- c.style.position='absolute';
- c.style.height='100%';
- c.style.width='100%';
- document.body.appendChild(c);
- },1000*b)
- }
- else alert('No');
Add Comment
Please, Sign In to add comment