IMDb Enhancer

Better display for IMDb

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name           IMDb Enhancer
// @namespace      surrealmoviez.info
// @description    Better display for IMDb
// @include        http://www.imdb.com/find?*
// @grant          none
// @version        0.0.2
// ==/UserScript==

// Insert the IMDb ID as plain text at the right side of the titles matches
var titlesBlock = $('.findSectionHeader:contains("Titles")').parent();
$('.result_text', titlesBlock).each(function() {
    var href = $('a', this).attr('href');
    var id = href.substring(href.indexOf('/tt') + 1, href.lastIndexOf('/'));
    $(this).append('<span style="float: right; margin-right: 5px; opacity: 0.4; padding: 4px;">' + id + '</span>');
});