Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
June 19, 2021 01:43 pm GMT

Skip every ad (Advertisment) in Youtube with this simple trick.

Tired of Youtube's pesky ad breaks?
Do you want them to just... vanish away?

Then your at the right place.

All you need is one bookmarklet.

"What's a bookmarklet" you may ask?
A bookmarklet is a bookmark stored in a web browser that contains JavaScript commands that add new features to the browser. Bookmarklets are unobtrusive JavaScripts stored as the URL of a bookmark in a web browser or as a hyperlink on a web page. Bookmarklets are usually JavaScript programs. Regardless of whether bookmarklet utilities are stored as bookmarks or hyperlinks, they add one-click functions to a browser or web page. When clicked, a bookmarklet performs one of a wide variety of operations, such as running a search query or extracting data from a table. For example, clicking on a bookmarklet after selecting text on a webpage could run an Internet search on the selected text and display a search engine results page.

Now that you know what a bookmarklet is, how do you create one?
All you need to do is:

Go here: https://codepen.io/FRADAR/full/yLgyowv
Then drag the button where it says "Skip Ad" to your bookmark bar.

Your done!

Now whenever there is an advertisment on youtube,just click the bookmark button and the ad will skip on it's own!

If you want to know how this is happening, basically there is some javascript in the bookmarklet that gets embedded on the page when you click the bookmarlet. The javascript is this: "javascript:(function()%7Bdocument.querySelector('video').currentTime %3D document.querySelector('video').duration%7D)()%3B"


Original Link: https://dev.to/fradar/skip-every-ad-advertisment-in-youtube-with-this-simple-trick-40ik

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To