Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //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
- const tourl = x => `https://gs.3g.cn/D/${x.toString(16)}/w`;
- const parseFile = url =>
- url.split('=')[1].split('&')[0].replaceAll('%2F', '/').replaceAll('%3A', ':');
- let start = 14045640, end = 10;
- const iframe = src => `<iframe src="${src}" style='height: 400px;'></iframe>`;
- const html = `
- <style>body{background: #000; overflow: scroll;} #next, #back {position: fixed; right: 20px; top: 20px;} #back {right: 55px;} </style>
- <button id='next' onclick="rem();go()">next</button>
- <button id='back' onclick="rem();go(false)">back</button>
- <div id='box'></div>
- `;
- document.body.innerHTML = html;
- const box = document.querySelector('#box');
- const rem = () => box.innerHTML = '';
- const go = (to = true) => {
- start += to ? 10 : -10;
- const urls = Array(end).fill(start).map((i, j) => i + j).map(x => tourl(x));
- box.innerHTML = urls.map(u => iframe(u)).join('\n');
- }
- go();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement