Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var regex = /<a[^>]+>([^<]+)[\s\S]+(\d{2}\/\d{2}\/\d{2})[\s\S]+(\d{2}\/\d{2}\/\d{2})/im;
- GM_xmlhttpRequest({
- url: window.location.href,
- method: "GET",
- onload: function(r) {
- var rT = r.responseText,
- movies = rT.split("<span class=\"title\">"),
- movieList = [];
- for(var i=0, movies; (movie=movies[i]); i++) {
- if(regex.test(movie)) movieList.push(
- "Title: " + movie.match(regex)[1] +
- "\nShip Date: " + movie.match(regex)[2] +
- "\nReturn Date: " + movie.match(regex)[3]
- );
- }
- alert(movieList.join("\n\n"));
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement