IMDb Enhancer

Better display for IMDb

目前为 2014-12-01 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name IMDb Enhancer
  3. // @namespace surrealmoviez.info
  4. // @description Better display for IMDb
  5. // @include http://www.imdb.com/find?*
  6. // @grant none
  7. // @version 0.0.2
  8. // ==/UserScript==
  9.  
  10. // Insert the IMDb ID as plain text at the right side of the titles matches
  11. var titlesBlock = $('.findSectionHeader:contains("Titles")').parent();
  12. $('.result_text', titlesBlock).each(function() {
  13. var href = $('a', this).attr('href');
  14. var id = href.substring(href.indexOf('/tt') + 1, href.lastIndexOf('/'));
  15. $(this).append('<span style="float: right; margin-right: 5px; opacity: 0.4; padding: 4px;">' + id + '</span>');
  16. });