The ad blockers I tried, did remove the YouTube ads, but I still had to wait until the ad's play period was up.
I solved this by making a script to click the Skip Ads button, like I originally planned.
Since YouTube rapidly changes the page after the ad ends, I had trouble locating the class name that I needed. I ended up taking a quick screenshot of the page's code before it vanished. That helped immensely.
Here is the AppleScript code that I use. I still get aa smile on my face every time I trigger it:
to clickClassName(theClassName, elementnum)
tell application "Safari"
do JavaScript "document.getElementsByClassName('" & theClassName & "')[" & elementnum & "].click();" in document 1
end tell
end clickClassName
clickClassName("ytp-ad-skip-button", 0)
Thank you, kind man! Based on your script, I created my own for clicking (Like button on Youtube for Safari), thank you very much. It may be useful to someone.
I use Automator/ Apple Script/ Quick action + Keyboard shortcut (⌥L)
to clickClassName(theClassName, elementnum)
tell application "Safari"
do JavaScript "document.getElementsByClassName('" & theClassName & "')[" & elementnum & "].click();" in document 1
end tell
end clickClassName
clickClassName("yt-spec-button-shape-next yt-spec-button-shape-next--tonal yt-spec-button-shape-next--mono yt-spec-button-shape-next--size-m yt-spec-button-shape-next--icon-leading yt-spec-button-shape-next--segmented-start", 0)