您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Add search links to Netflix titles
当前为
// ==UserScript== // @name Links on Netflix - IMDB, Metacritic, Rotten Tomatoes // @description Add search links to Netflix titles // @version 0.5 // @author mica // @namespace greasyfork.org/users/12559 // @include https://www.netflix.com/* // @require https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js // @grant none // ==/UserScript== (function() { $('head').append(`<style> a.slnk {margin-left: 10px;} a.slnk img {width: 20px; height: 20px;} </style>`); var url; setInterval(function() { if (url != location.href) { url = location.href; setTimeout(function() { $('a.slnk').remove(); if ($('.about-header > h3 > strong').text() != '') { var title = $('.about-header > h3 > strong').text(); } var imdb = 'https://www.imdb.com/find?s=tt&ref_=fn_tt&q=' + encodeURIComponent(title); $('<a>').attr('href', imdb).attr('target', '_blank').addClass('slnk') .html('<img src="https://www.imdb.com/favicon.ico">') .appendTo('.videoMetadata--container:first'); var mc = 'https://www.metacritic.com/search/all/' + encodeURIComponent(title.replace(/\*|\//g,' ')) + '/results'; $('<a>').attr('href', mc).attr('target', '_blank').addClass('slnk') .html('<img src="https://www.metacritic.com/favicon.ico">') .appendTo('.videoMetadata--container:first'); var rt = 'https://www.rottentomatoes.com/search/?search=' + encodeURIComponent(title); $('<a>').attr('href', rt).attr('target', '_blank').addClass('slnk') .html('<img src="https://www.rottentomatoes.com/favicon.ico">') .appendTo('.videoMetadata--container:first'); }, 1100); } }, 300); })();