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.1
  5. // @author mica
  6. // @namespace gf.qytechs.cn/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. // @license MIT
  11. // ==/UserScript==
  12. $('head').append(`
  13. <style>
  14. #sbox {margin: 4px 0 0 4px}
  15. #sbox a {margin: 0 8px}
  16. #sbox img {width: 24px; height: 24px;}
  17. </style>
  18. `);
  19. var url;
  20. setInterval(function() {
  21. if (url != location.href) {
  22. url = location.href;
  23. $('#sbox').remove();
  24. setTimeout(function() {
  25. var title = $('.about-header > h3 > strong').text();
  26. var mc = 'https://www.metacritic.com/search/all/' + encodeURIComponent(title.replace(/\*|\//g,' ')) + '/results';
  27. var imdb = 'https://www.imdb.com/find?s=tt&ref_=fn_tt&q=' + encodeURIComponent(title);
  28. var rt = 'https://www.rottentomatoes.com/search/?search=' + encodeURIComponent(title);
  29. var yt = 'https://www.youtube.com/results?search_query=' + encodeURIComponent(title) + ' trailer'
  30. $('[data-uia|="videoMetadata--container"]:first').append([
  31. $('<div>').attr('id', 'sbox').append([
  32. $('<a>').attr('href', mc).attr('target', '_blank').html('<img src="https://www.metacritic.com/favicon.ico">'),
  33. $('<a>').attr('href', imdb).attr('target', '_blank').html('<img src="https://www.imdb.com/favicon.ico">'),
  34. $('<a>').attr('href', rt).attr('target', '_blank').html('<img src="https://www.rottentomatoes.com/assets/pizza-pie/images/favicon.ico">'),
  35. $('<a>').attr('href', yt).attr('target', '_blank').html('<img src="https://www.youtube.com/s/desktop/f4861452/img/favicon_32x32.png">')
  36. ])
  37. ]);
  38. }, 1000);
  39. }
  40. }, 100);

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址