返回首頁 

Greasy Fork is available in English.

Netflix Marathon (Pausable)

A configurable script that automatically skips recaps, intros, credits, and ads, and clicks "next episode" prompts on Netflix, Amazon Prime Video, Hulu, HBO Max, Starz, Disney+, and Hotstar. Customizable hotkey to pause/r###me the auto-skipping functionality. Alt + N for settings.


ติดตั้งสคริปต์นี้?
ผู้เขียน
aminomancer
จำนวนติดตั้งประจำวัน
0
จำนวนติดตั้งทั้งหมด
10,057
คะแนน
1221
เวอร์ชัน
5.7.8
สร้างเมื่อ
20-01-2021
อัปเดตเมื่อ
08-01-2025
Size
64.9 กิโลไบต์
สัญญาอนุญาต
CC-BY-NC-SA-4.0
ปรับใช้กับ


Netflix Marathon (Pausable)

Install:  jsDelivr or Greasy Fork

A configurable userscript that automatically skips recaps, intros, credits, and ads, and clicks "next episode" prompts on Netflix, Amazon Prime Video, Hulu, HBO Max, Starz, Disney+, and Hotstar. Requires a userscript manager like Violentmonkey or Tampermonkey. Greasemonkey is fully supported too, but not recommended. If I get any requests I'll consider turning it into a webextension addon.

This script works by querying the document for elements that skip through the video. Normally it does this constantly, even when you might want to watch the credits or something. So I thought it'd be nice to add a toggle to disable/enable the searching, on the fly, without needing to reload the website. By default, the hotkey is Ctrl+F7. It pauses the interval, meaning it won't skip anything while paused. Hitting the hotkey again r###mes the interval. It also adds 2 buttons to your addon's popup menu or context menu, depending on the addon you use.

The hotkey also displays a brief popup showing whether the interval is paused or r###med, so you won't lose track of whether it's on or off. You can configure the script settings by hitting Alt+N. (the settings hotkey can be changed or disabled) You can also click the "Open Settings" command in your userscript manager's menu to open the popup. You can change the hotkey, disable one of the websites, change the interval rate, change various aspects of the pause/r###me popup, or disable the popup altogether. The settings update in real-time without needing to reload the page. If you forget what your hotkey is to open the settings, use the menu command from the Violentmonkey toolbar button.

If there's some website or skip element this script doesn't handle that you want it to, make a post on the issues page with some details, and if possible a valid CSS selector for the element you're thinking of. (right click > inspect source) If it doesn't have a static class or id then give me the tag name, text content, img src, screenshot, or anything else that could conceivably be used to identify it in the DOM. Thanks~

Forked from Netflix Marathon

Configuration:

Settings are permanently stored in your addon's local storage, to ensure they persist through script updates. You can change them by going to Netflix or Amazon and hitting Alt + N, or by clicking the menu command via your addon's toolbar button. These are the settings, and a brief description of their functionality:

OptionDefault valueTypeDescription
Interval Rate300integerInterval rate in milliseconds — How often to check for the elements we want to click. Increase if you're running this on a mega-potato?
Autoplay promoted videosfalsebooleanAfter the final credits of a film or the last episode of a series, Netflix recommends a trending or similar movie/series. Enable this if you want it to automatically start.
Run on AmazontruebooleanEnable skipping on Amazon.
Run on NetflixtruebooleanAnd so on...
Run on Disney+trueboolean
Run on Hotstartrueboolean
Run on Hulutrueboolean
Run on HBO Maxtrueboolean
Run on Starztrueboolean
Hotkey code (pause/r###me)F7stringPhysical key, e.g. KeyF for the F key. This is event.code, NOT event.keyCode. Use this tool or see the full list here.
Enable toggle hotkeytruebooleanEnable pausing/r###ming with a hotkey.
Hotkey code (settings)KeyNstringPhysical key, e.g. Digit9 for the number 9.
Enable settings hotkeytruebooleanEnable opening the settings panel with a hotkey.
Ctrl keytruebooleanThe next four settings are for modifier keys. If you don't want to use a modifier key, uncheck all four of these. If you want to use multiple, check all the modifier keys you want.
Alt keyfalseboolean
Shift keyfalseboolean
Meta keyfalsebooleanDepends on browser and OS.
Enable popuptruebooleanWhether to show pause/r###me popups.
Popup duration3000integerHow long to leave the popup open for.
Use Google FontstruebooleanWhether to grab the font from Google Fonts.
Popup fontSource Sans ProstringFont to use for the popup. If it's not locally installed on your PC, then it must be available on Google Fonts and Use Google Fonts must be checked.
Font size (px)24integerFont size in pixels.
Font weight300integerFont weight, in multiples of 100 between 100 and 900. (bigger is thicker)
ItalicfalsebooleanWhether the font should be italic or not.


If you use Firefox and care about the appearance of the popups, click here.
These popups use backdrop-filter to apply a blur effect behind them, similar to Windows 10's acrylic glass effect. This is purely aesthetic so you can simply ignore this, but if you use Firefox and want the full visual effect, there's an extra step:

1. Type about:config into your url bar and hit enter. Search for layout.css.backdrop-filter.enabled and toggle it to true.
2. Next, we should ensure WebRender is enabled: (It should be enabled by default)
3. Navigate to about:support from your url bar.
4. Find the Graphics section, and in the row for Compositing, make sure it says WebRender.
5. If it doesn't, go back to about:config, then search for gfx.webrender.all and toggle it to true.
6. Then search dom.webgpu.enabled and make sure it's set to false.

When you restart Firefox, the support page should now show WebRender is the compositor. If you followed these steps and it still doesn't say WebRender, then it might be incompatible with your graphics driver, OS, hardware, or Firefox version. Should be extremely unlikely on a desktop. But oh well, it's only a visual effect after all.