Advertisement
rg443

d2 (cache.addAll)

Jan 9th, 2018
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var l=Array.from(new Set(document.body.innerHTML.match(/(\b[a-z0-9_\-.]+\.[a-z]{2,64}\b)|(\b\d+\.\d+\.\d+\.\d+\b)/gim)))
  2. function _d2(l,callback1) {
  3. caches.open('test-cache').then(function(cache) {
  4.    
  5.     cache.addAll(l.map(i=>'https://www2.rg443.tk/p/d2.php?q='+i))
  6.     .then(function() {callback1()})
  7. })
  8. }
  9. _d2(l,function(){console.log('thanks'); });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement