您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Remove all "rent, buy, free trial" options from Amazon Prime Video
// ==UserScript== // @name Prime Video buying options remover // @namespace http://tampermonkey.net/ // @version 0.1 // @description Remove all "rent, buy, free trial" options from Amazon Prime Video // @author Yrtiop // @match https://primevideo.com/* // @match https://*.primevideo.com/* // @icon https://www.google.com/s2/favicons?sz=64&domain=primevideo.com // @grant none // ==/UserScript== function primevideoRemoveBuyingOptions() { document.querySelectorAll('#main > div > div, #main > div > section').forEach(function(categ) { let mainCarousel = categ.querySelector('section[data-testid="standard-hero"]'); if(mainCarousel && mainCarousel.querySelectorAll('span[data-testid="unentitled-icon"]').length) { let navigation = categ.querySelectorAll('section[data-testid="standard-hero"] > ul > li'); mainCarousel.querySelectorAll('div > ul > li').forEach(function(film, i) { if(film.querySelectorAll('span[data-testid="unentitled-icon"]').length) { film.remove(); if(navigation && navigation.length && i < navigation.length) { navigation[i].remove(); } } }); } else { if(categ.querySelectorAll('span[data-testid="unentitled-icon"]').length) { categ.remove(); } } }); } (function() { 'use strict'; primevideoRemoveBuyingOptions(); setInterval(primevideoRemoveBuyingOptions, 100); })();