Greasy Fork is available in English.

Links on Netflix - IMDB, Rotten Tomatoes, Metacritic, YouTube Trailers

Adds links for searching titles from netflix.com

  1. // ==UserScript==
  2. // @name Links on Netflix - IMDB, Rotten Tomatoes, Metacritic, YouTube Trailers
  3. // @description Adds links for searching titles from netflix.com
  4. // @version 1.0
  5. // @author mica
  6. // @namespace greasyfork.org/users/12559
  7. // @include https://www.netflix.com/browse*
  8. // @include https://www.netflix.com/title/*
  9. // @require https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js
  10. // @grant none
  11. // @license MIT
  12. // ==/UserScript==
  13.  
  14. $('head').append(`
  15. <style>
  16. #sbox {margin: 4px 0 0 4px}
  17. #sbox a {margin: 0 8px}
  18. #sbox img {width: 24px; height: 24px;}
  19. </style>
  20. `);
  21. var url;
  22. setInterval(function() {
  23. if (url != location.href) {
  24. url = location.href;
  25. $('#sbox').remove();
  26. setTimeout(function() {
  27. var title = $('.about-header > h3 > strong').text();
  28. var year = $('.year:first').text();
  29. var rt = 'https://www.rottentomatoes.com/tv/' + encodeURIComponent(title.replaceAll(' ','_'))
  30. var rtm = 'https://www.rottentomatoes.com/m/' + encodeURIComponent(title.replaceAll(' ','_'))
  31. $('[data-uia|="videoMetadata--container"]:first').append([
  32. $('<div>').attr('id', 'sbox').append([
  33. $('<a>').attr('href', rt).attr('target', '_blank').html('<img src="https://www.rottentomatoes.com/favicon.ico">'),
  34. $('<a>').attr('href', rtm).attr('target', '_blank').html('<img src="https://img.icons8.com/external-flat-juicy-fish/2x/external-popcorn-film-making-flat-flat-juicy-fish.png">'),
  35. ])
  36. ]);
  37. }, 1000);
  38. }
  39. }, 100);