Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * One-liner for use as button URL
- */
- javascript:(( ) => { const v = document.querySelector('video'); if (v) { v.currentTime = v.duration; } const b = document.querySelector('button.ytp-ad-skip-button-modern'); if (b) { b.click(); } })();
- /*
- * Expanded for readability
- */
- javascript:(( ) => {
- const v = document.querySelector('video');
- if (v) { v.currentTime = v.duration; }
- const b = document.querySelector('button.ytp-ad-skip-button-modern');
- if (b) { b.click(); }
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement