Advertisement
thetenfold

ShipDate_testing

Jun 4th, 2013
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var regex = /<a[^>]+>([^<]+)[\s\S]+(\d{2}\/\d{2}\/\d{2})[\s\S]+(\d{2}\/\d{2}\/\d{2})/im;
  2.  
  3. GM_xmlhttpRequest({
  4.     url: window.location.href,
  5.     method: "GET",
  6.     onload: function(r) {
  7.         var rT = r.responseText,
  8.             movies = rT.split("<span class=\"title\">"),
  9.             movieList = [];
  10.  
  11.             for(var i=0, movies; (movie=movies[i]); i++) {
  12.                 if(regex.test(movie)) movieList.push(
  13.                     "Title: " + movie.match(regex)[1] +
  14.                     "\nShip Date: " + movie.match(regex)[2] +
  15.                     "\nReturn Date: " + movie.match(regex)[3]
  16.                 );
  17.             }
  18.            
  19.             alert(movieList.join("\n\n"));
  20.     }
  21. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement