Skip to content

Instantly share code, notes, and snippets.

@pietvandongen
Forked from ohheh/letterboxdbookmarklet.js
Last active March 31, 2019 23:52
Show Gist options
  • Save pietvandongen/5157400 to your computer and use it in GitHub Desktop.
Save pietvandongen/5157400 to your computer and use it in GitHub Desktop.
A couple of bookmarklets to help you quickly find a movie on iCheckMovies from another site.
javascript:{var link = document.getElementsByClassName('iconIMDB')[0].href;try{window.open(link);}catch(e){}};void(0);
javascript:{var url = document.getElementsByClassName('iconIMDB')[0].href;var regex = /\/(?:title|name)\/([a-zA-Z0-9])+\//gi;if (regex.test(url)){try{var imdbId=url.match(regex)[0].split("\/")[2].substring(2);window.open('http://www.rottentomatoes.com/alias/?type=imdbid&s='+imdbId);}catch(e){}}};void(0);
javascript:{var s = window.location.href.toString();var p=/\/(?:title|name)\/([a-zA-Z0-9])+\//gi;if (p.test(s)){try{var n=s.match(p)[0].split("\/")[2];window.open('http://www.icheckmovies.com/search/movies/?query='+n);}catch(e){}}};void(0);
javascript:{var t = document.querySelectorAll('meta[property="og:title"]')[0].getAttribute("content");try{window.open('http://www.icheckmovies.com/search/movies/?query='+t);}catch(e){}};void(0);
@pietvandongen
Copy link
Author

Usage

  • Create a new bookmark with a title like IMDb to iCheckMovies and contents of the imdb2icheckmoviesbookmarklet.js snippet as its URL.
  • Go to an IMDb page.
  • Click the bookmarklet on your browsers bookmarklet bar

You will be taken to the iCheckMovies page of the movie or the search page if there are more matches.

Thanks to ohheh!

@pietvandongen
Copy link
Author

I've added a bookmarklet for Rotten Tomatoes, which works basically the same way.

@pietvandongen
Copy link
Author

I've added a bookmarklet to jump from an iCheckMovies page to its corresponding IMDb page.

@pietvandongen
Copy link
Author

I've add a bookmarklet to jump from an iCheckMovies page to its corresponding Rotten Tomatoes page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment