Skip to content

Instantly share code, notes, and snippets.

@jeffmerrick
Created October 13, 2014 20:21
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save jeffmerrick/c7e782ee8f66ddffc1bf to your computer and use it in GitHub Desktop.
Extract info from the page
(function(window, $, undefined){
function getInfo() {
var movieInfo = {};
movieInfo['title'] = $('h1.title').html();
movieInfo['year'] = $('span.year').html();
movieInfo['type'] = $('.noreview-col-left h3').html().replace(' Details','');
return movieInfo;
}
$('.actions').append('<br><br><span class="btnWrap mltBtn mltBtn-s60"><a id="watch-trailer" href="javascript:void(0);" style="margin-top:-5px" class="svf-button svfb-silver addlk evo-btn svf-button-inq save2add"><span class="inr">Watch Trailer</span></a></span>');
})(window, jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment