Enhanced Corrupt Dailymotion Ads

Corrupts ads on Dailymotion by blocking playback

Author
Cloudy.Days
Daily installs
0
Total installs
107
Ratings
0 0 0
Version
2.0
Created
2024-09-23
Updated
2024-09-23
Size
6.07 KB
License
N/A
Applies to

Script Title: Enhanced Corrupt Dailymotion Ads

Description

This userscript enhances the Dailymotion video experience by corrupting and blocking the playback of ads. It effectively identifies common ad sources and prevents their playback, allowing users to enjoy uninterrupted content. The script also suppresses specific console warnings to enhance the overall user experience.

Features

  • Ad Blocking: Monitors video elements on Dailymotion and blocks playback for sources identified as ads, including various ad networks and tracking services.
  • Dynamic Detection: Utilizes a MutationObserver to continuously check for new video elements added to the DOM, ensuring ads are blocked in real-time.
  • Error Handling: Rejects the playback promise for detected ads, simulating a connection issue to prevent the ad from being displayed.
  • Console Warning Suppression: Suppresses specific console warnings related to cross-site cookie access, keeping the console output clean and focused.

Installation

  1. Install Tampermonkey or a similar userscript manager in your browser.
  2. Create a new script and copy-paste the provided code into the editor.
  3. Save the script and navigate to Dailymotion to start blocking ads.

Usage

Simply visit Dailymotion after installing the script. The script will automatically begin blocking ad playback without any additional setup required.

长期地址
遇到问题?请前往 GitHub 提 Issues,或加Q群1031348184

赞助商

Fishcpy

广告

Rainyun

注册一下就行

Rainyun

一年攒够 12 元