Twitch - Refresh on Advert

Detects placeholder ads and refreshes the page, or for FFZ users, resets the player.

יוצר
CodingAndAlgorithm
התקנות יומיות
1
סה"כ התקנות
4,389
דירוגים
0 0 0
גרסה
0.72
נוצר
03-11-2020
עודכן
06-11-2020
Size
7 קילו-בייט
רישיון
לא זמין
חל על

****************************************************************

Script is outdated as resetting the player no longer clears ads.

****************************************************************

This script simply detects placeholder ads and refreshes the page or for FFZ users, resets the player.

- FrankerFaceZ browser extension recommended.
- Requires UBlockOrigin script offered up by u/thesbros - https://reddit.com/r/Twitch/comments/jjepg8/fix_for_ublock_origin_on_twitch_i_updated_the/
--------------------------------------------------------------------------------
New in 0.72:
Updated overlay message to read more clearly.
Minor change to UBlock failure detection.

New in 0.71:
Slightly extended overlay time.

New in 0.70:
Prevent refresh loop when UBlock fails.
Display overlay message with helpful information for duration of ad.

New in 0.61:
Minor logging fix.

New in 0.60:
Basic logging.
Increased performance by using MutationObserver (Based on SimpleHackers code)
FFZ:
Restores volume after specific mutation (Should be more reliable than setTimeout method)
Restores compressor state after specific mutation.