Skip to content

Instantly share code, notes, and snippets.

@karlwilbur
Created December 1, 2020 19:49
Show Gist options
  • Save karlwilbur/fbfaaadad86d2d998bf221081dbad79a to your computer and use it in GitHub Desktop.
Save karlwilbur/fbfaaadad86d2d998bf221081dbad79a to your computer and use it in GitHub Desktop.
YouTube Ad Skipper Bookmarklet
javascript:(function()%7Bfunction callback()%7B(function(%24)%7Bvar jQuery%3D%24%3Bwindow.%24%3D%24%3BsetInterval("window.%24('.ytp-ad-skip-button') %26%26 window.%24('.ytp-ad-skip-button').click()"%2C 1000)%7D)(jQuery.noConflict(true))%7Dvar s%3Ddocument.createElement("script")%3Bs.src%3D"https%3A%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fjquery%2F1.11.1%2Fjquery.min.js"%3Bif(s.addEventListener)%7Bs.addEventListener("load"%2Ccallback%2Cfalse)%7Delse if(s.readyState)%7Bs.onreadystatechange%3Dcallback%7Ddocument.body.appendChild(s)%3B%7D)()
@karlwilbur
Copy link
Author

karlwilbur commented Dec 1, 2020

Once "installed", this bookmarklet can be used to immediately skip any YouTube ads with a 5-second countdown. To enable/start the ad skipper in a tab, just click the button in the bookmark bar. Once enabled in a tab, it will continue to run in that tab until the page is reloaded or the tab is closed.

Brave/Chrome/Chromium

  • bookmark this page (drag the lock icon from the omnibar to your bookmark bar)
  • triple-click the code on this page to select it all and then copy it to your clipboard
  • right-click on the new bookmark and select "Edit..."
  • edit the "Name" bookmark to "YouTube Ad Skipper"
  • delete the current "URL" and replace it with the above code by pasting your clipboard contents

Firefox

  • bookmark this page (drag the lock icon from the omnibar to your bookmark bar)
  • triple-click the code on this page to select it all and then copy it to your clipboard
  • right-click on the new bookmark and select "Properties"
  • edit the "Name" to be "YouTube Ad Skipper"
  • delete the current "Location" and replace it with the above code by pasting your clipboard contents

@W-i-n-7
Copy link

W-i-n-7 commented Jun 3, 2023

nice

@melzyy
Copy link

melzyy commented Jun 3, 2023

epic

@diamondbroplayz
Copy link

ebic

@SiddheshDhinge
Copy link

epic

@ghostey44
Copy link

epic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment