Warning: fopen(/www/sites/greasyfork.icu/index/store/temp/374fbb54ee747e4aff6431d09d4af5fb.html): failed to open stream: No space left on device in /www/sites/greasyfork.icu/index/scriptsControl.php on line 132
Auto Close YouTube Ads - 反馈

Greasy Fork

Greasy Fork is available in English.

Auto Close YouTube Ads

Close and/or Mute YouTube ads automatically!

< 脚本 Auto Close YouTube Ads 的反馈

提问 / 留言

§
发布于:2018-07-20

Can you modify this script for Dailymotion? I will pay for your work


fuzetsu作者
§
发布于:2018-07-20

I don't need payment. Give me a link to a video with ads and I'll see if it's doable.

§
发布于:2018-07-25
编辑于:2018-07-26

I will let you a link to a playlist.

https://www.dailymotion.com/video/x5xlhen?start=20000&playlist=x5w50d

I have some codes that i use and they work but they need user input, clicks, etc

This one is a bookmarklet that skips almost any unskippable ad that works with javascript:

javascript: (function(){ void(document.querySelector('video').currentTime = document.querySelector('video').duration) })()

and this one works with chromium browser automation extension and it skips skippable ads:

body div.videoAdUi div.videoAdUiSkipContainer.html5-stop-propagation BUTTON.videoAdUiSkipButton.videoAdUiAction.videoAdUiRedesignedSkipButton

The thing is that i don't know how to make them work on autopilot. I have no clue how to code.

fuzetsu, if you can combine this two things into one script that works with tampermonkey on chrome, on dailymotion website, you will be my hero. Thanks in advance :)

This is how they look working together in chromium browser automation, extension for chrome:

{"action":[{"data":"body div.videoAdUi div.videoAdUiSkipContainer.html5-stop-propagation BUTTON.videoAdUiSkipButton.videoAdUiAction.videoAdUiRedesignedSkipButton","evType":"click","msgType":"userEvent","newValue":""},{"data":"(function(){ void(document.querySelector('video').currentTime = document.querySelector('video').duration) })()","evType":"cs-inject","msgType":"userEvent","newValue":""}],"name":"project0","level":"1","isLeaf":true,"expanded":false,"loaded":true}

@fuzetsu dijo: I don't need payment. Give me a link to a video with ads and I'll see if it's doable.

发布留言

登录以发布留言。