The brief
Dailymotion is a video hosting site just like youtube and i need a script to skip the preroll ads.
Right now i'm using 'chromium browser automation' extension for chrome but unfortunately is not on autopilot, it requires user input (clicks, etc)
I'm using a bookmarklet that skips any unskippable ads that work with javascript:
javascript: (function(){ void(document.querySelector('video').currentTime = document.querySelector('video').duration) })()
Regarding this one...it should skip the ads after a few seconds.
...and a click recorded with that extension that skips skippable ads:
body div.videoAdUi div.videoAdUiSkipContainer.html5-stop-propagation BUTTON.videoAdUiSkipButton.videoAdUiAction.videoAdUiRedesignedSkipButton
This is how they look working together in the extension:
{"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}
Test the script before send me any link or posting any coments. Don't try to sell me public scripts asking me if they work. If you have no clue, stay away.
What i need is a working script with this two things on chrome. I saw similar extensions and scripts but they are made only for youtube.
Thanks in advance