您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Add streaming platform search function to IMDB page.
当前为
// ==UserScript== // @name IMDB Streaming Search (Netflix, Hulu, Amazon) // @namespace https://gf.qytechs.cn/en/users/95954 // @version 1 // @description Add streaming platform search function to IMDB page. // @author A e s t h e t i c s // @require http://code.jquery.com/jquery-1.12.4.min.js // @include http://*.imdb.com/title/*/ // @include http://*.imdb.com/title/*/?* // @include http://*.imdb.com/title/*/maindetails // @include http://*.imdb.com/title/*/combined // @include http://imdb.com/title/*/ // @include http://imdb.com/title/*/maindetails // @include http://imdb.com/title/*/combined // ==/UserScript== (function() { 'use strict'; $('.subtext').prepend('<button id="netflix-search" style="margin: 0 0 20px; font-size: 10px; color: White; font-weight: bold; padding:4px;"></button><button id="hulu-search" style="margin: 0 0 20px; font-size: 10px; color: White; font-weight: bold; padding:4px;"></button><button id="amazon-search" style="margin: 0 0 20px; font-size: 10px; color: White; font-weight: bold; padding:4px;"></button></br>'); $('#netflix-search').text('Search Netflix'); $('#netflix-search').css('background-color', 'red'); $("#netflix-search").click(netflixSearch); $('#hulu-search').text('Search Hulu'); $('#hulu-search').css('background-color', 'green'); $("#hulu-search").click(huluSearch); $('#amazon-search').text('Search Amazon'); $('#amazon-search').css('background-color', 'orange'); $("#amazon-search").click(amazonSearch); var ab = document.getElementsByClassName('title_wrapper'); var searchstring = ab[0].children[0].textContent.replace(/ *\([^)]*\) */g, ""); function netflixSearch() { window.open('https://www.netflix.com/search?q='+searchstring); } function huluSearch() { window.open('https://www.hulu.com/search?q='+searchstring); } function amazonSearch() { window.open('https://www.amazon.com/s/ref=nb_sb_noss_2?url=search-alias%3Dprime-instant-video&field-keywords='+searchstring); } })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址