Advertisement
Guest User

Untitled

a guest
Nov 21st, 2020
883
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //http://gosms.gomocdn.com/mms/v14/index.html?u=http%3A%2F%2Fgosms.gomocdn.com%2FC1F63-2020-05-10-13-59-33%2Fgosharefile_video%2F2956_P_600K_276150191.mp4&t=video/mp4&w=100&h=200
  2.  
  3. const tourl = x => `https://gs.3g.cn/D/${x.toString(16)}/w`;
  4. const parseFile = url =>
  5.     url.split('=')[1].split('&')[0].replaceAll('%2F', '/').replaceAll('%3A', ':');
  6.  
  7. let start = 14045640, end = 10;
  8.  
  9. const iframe = src => `<iframe src="${src}" style='height: 400px;'></iframe>`;
  10. const html = `
  11.     <style>body{background: #000; overflow: scroll;} #next, #back {position: fixed; right: 20px; top: 20px;} #back {right: 55px;} </style>
  12.     <button id='next' onclick="rem();go()">next</button>
  13.     <button id='back' onclick="rem();go(false)">back</button>
  14.     <div id='box'></div>
  15.     `;
  16.  
  17. document.body.innerHTML = html;
  18. const box = document.querySelector('#box');
  19.  
  20. const rem = () => box.innerHTML = '';
  21. const go = (to = true) => {
  22.     start += to ? 10 : -10;
  23.     const urls = Array(end).fill(start).map((i, j) => i + j).map(x => tourl(x));
  24.     box.innerHTML = urls.map(u => iframe(u)).join('\n');
  25. }
  26.  
  27. go();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement