Sunday, June 15, 2014

IMDb to Letterboxd Redirector

This post was made to host a simple JavaScript script I've written for quickly redirecting an IMDb link to its corresponding Letterboxd page with a Firefox keyword search. Syntax: link


Goes to:

You're reading this because you haven't accessed this page with a #imdb hash parameter, or JavaScript is turned off.

If you're interested, here's the PHP script I had been using for this before:


if ($_GET['imdb']){
$url = $_GET['imdb'];
$parts = explode('/', $url);
$url = '' . $parts[4];

function redirect($letterboxd, $statusCode = 303){
header('Location: ' . $letterboxd, true, $statusCode);


else{echo '<p>Parameter not provided.</p>';}