-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:{var link = document.getElementsByClassName('iconIMDB')[0].href;try{window.open(link);}catch(e){}};void(0); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
I've added a bookmarklet for Rotten Tomatoes, which works basically the same way.
I've added a bookmarklet to jump from an iCheckMovies page to its corresponding IMDb page.
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
Usage
You will be taken to the iCheckMovies page of the movie or the search page if there are more matches.
Thanks to ohheh!