Enhanced Corrupt Dailymotion Ads

Corrupts ads on Dailymotion by blocking playback

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
Cloudy.Days
日安装量
2
总安装量
160
评分
0 0 0
版本
2.0
创建于
2024-09-23
更新于
2024-09-23
大小
6.1 KB
许可证
暂无
适用于

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.