code-charity / youtube

[top~1 open YouTube & Video browser-extension] - Enrich your experience & choice! 🧰180+ options & clever features 📌set+forget📌Longest-standing(been tough). Please join🧩us👨‍👩‍👧‍👧 ..⋮ {playback|content discovery|player|extra buttons|distractions|related videos|shorts|ads|quality|codec|full tab|full screen}
http://improvedtube.com
Other
3.54k stars 542 forks source link

Automatically click "Skip Ad" #1872

Open OrangeDog opened 11 months ago

OrangeDog commented 11 months ago

PROBLEM: Ad blocking on YouTube is increasing difficult, or you want the channel to get ad revenue at minimal inconvenience.

SOLUTION:
When the "Skip Ad" button appears, it should automatically be clicked.

ALTERNATIVES: Click it manually. Use an additional extension to do it.

RELEVANCE / SCOPE: If blocking remains/re-becomes impossible, then 100%. Otherwise maybe 20% who want to support creators with minimal cost.

"SIDE EFFECTS":
None.

ImprovedTube commented 11 months ago

hi! @OrangeDog! :) yes we need to add the new name of the button on the YouTube website. And there are several variants. Maybe you wanna paste some of those you get? (right click: "inspect". You can temporarly disable youtube's context menu on the player with our other extension: https://chromewebstore.google.com/detail/unlock-keyboard-mouse/ijngdimmjkngoglcjaheoadciaalbafl )

want to support creators with minimal cost.

btw skipped ads yield them several or many times less a per your hour (or second) of attention, than you could can earn with work. (unless every video is about financial/commercial topics/advice only.

OrangeDog commented 11 months ago

Here's the one I just got:

<div class="video-ads ytp-ad-module" data-layer="4">
  <div class="ytp-ad-player-overlay" style="" id="player-overlay:21">
    <div class="ytp-ad-player-overlay-flyout-cta ytp-ad-player-overlay-flyout-cta-rounded">...</div>
    <div class="ytp-ad-player-overlay-instream-info">...</div>
    <div class="ytp-ad-player-overlay-skip-or-preview">
      <div class="ytp-ad-skip-ad-slot" style="" id="skip-button:22">
        <div class="ytp-ad-preview-slot" style="display: none;" id="preskip-component:23">...</div>
        <div class="ytp-ad-skip-button-slot" style="" id="skip-button:26">
          <span class="ytp-ad-skip-button-container ytp-ad-skip-button-container-detached" style="opacity: 0.5;">
            <button class="ytp-ad-skip-button-modern ytp-button">
              <div class="ytp-ad-text ytp-ad-skip-button-text-centered ytp-ad-skip-button-text" style="" id="ad-text:27">
                Skip
              </div>
              <span class="ytp-ad-skip-button-icon-modern">
                <svg height="100%" viewBox="-6 -6 36 36" width="100%">
                  <path d="M5,18l10-6L5,6V18L5,18z M19,6h-2v12h2V6z" fill="#fff"></path>
                </svg>
              </span>
            </button>
          </span>
        </div>
      </div>
    </div>
    <div class="ytp-ad-player-overlay-progress-bar"></div>
    <div class="ytp-ad-player-overlay-instream-user-sentiment"></div>
  </div>
</div>
ImprovedTube commented 11 months ago

@OrangeDog thanks! (maybe repeat)