Advertisement
Guest User

Untitled

a guest
Dec 7th, 2018
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. :
  2. var i = $._.indexOf('class="gallery-imgs-container js-gallery-imgs-container"')
  3. if(!i) { return null; }
  4. var t = $._.indexOf('class="gallery-navigation gallery-navigation_prev js-gallery-navigation"', i);
  5. if(t==-1) {  
  6.     var re2 = /\b src="(\/\/[^"]+)"/gmi
  7.     a = re2.exec( $._.substring(i) );
  8.     return a[1].replace("640x480","1280x960");
  9. }
  10. var res = []
  11. var re = /\bdata-url="(\/\/[^"]+)"/gmi
  12. var a = re.exec( $._.substring(i,t) );
  13. if(!a) { console.log("no match"); return null; }
  14. while(a){
  15.     res.push([a[1].replace("640x480","1280x960")]);
  16.     a = re.exec( $._.substring(i,t) );
  17. }
  18. return res
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement