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 JavaScr…


This content originally appeared on DEV Community and was authored by FRADAR

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"


This content originally appeared on DEV Community and was authored by FRADAR


Print Share Comment Cite Upload Translate Updates
APA

FRADAR | Sciencx (2021-06-19T13:43:29+00:00) Skip every ad (Advertisment) in Youtube with this simple trick.. Retrieved from https://www.scien.cx/2021/06/19/skip-every-ad-advertisment-in-youtube-with-this-simple-trick/

MLA
" » Skip every ad (Advertisment) in Youtube with this simple trick.." FRADAR | Sciencx - Saturday June 19, 2021, https://www.scien.cx/2021/06/19/skip-every-ad-advertisment-in-youtube-with-this-simple-trick/
HARVARD
FRADAR | Sciencx Saturday June 19, 2021 » Skip every ad (Advertisment) in Youtube with this simple trick.., viewed ,<https://www.scien.cx/2021/06/19/skip-every-ad-advertisment-in-youtube-with-this-simple-trick/>
VANCOUVER
FRADAR | Sciencx - » Skip every ad (Advertisment) in Youtube with this simple trick.. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/06/19/skip-every-ad-advertisment-in-youtube-with-this-simple-trick/
CHICAGO
" » Skip every ad (Advertisment) in Youtube with this simple trick.." FRADAR | Sciencx - Accessed . https://www.scien.cx/2021/06/19/skip-every-ad-advertisment-in-youtube-with-this-simple-trick/
IEEE
" » Skip every ad (Advertisment) in Youtube with this simple trick.." FRADAR | Sciencx [Online]. Available: https://www.scien.cx/2021/06/19/skip-every-ad-advertisment-in-youtube-with-this-simple-trick/. [Accessed: ]
rf:citation
» Skip every ad (Advertisment) in Youtube with this simple trick. | FRADAR | Sciencx | https://www.scien.cx/2021/06/19/skip-every-ad-advertisment-in-youtube-with-this-simple-trick/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.