Tampermonkey script to make youtube work since they kill all video playback if you have a adblocker turned on.
https://www.reddit.com/r/youtube/comments/15yn4jw/in_case_anyones_trying_to_bypass_ads/Tampermonkey® by Jan Biniok
v4.19.0
Youtube Ad Cleaner(Include Non-Skippable Ads- works)
by BjDanny
1
// ==UserScript==
2
// @name Youtube Ad Cleaner(Include Non-Skippable Ads- works)
3
// @namespace
http://tampermonkey.net/4
// @version 1.50.4
5
// @description (Be Tested Daily) Bypass all youtube ads (skippable and non-skippable Ads) plus download youtube video on the fly
6
// @ Please add youtube.com to the whitelist if you are using any adblocker to avoid reload loops
7
// @author BjDanny
8
// @run-at document-start
9
// @match *://*.youtube.com/*
10
// ==/UserScript==
11
'use strict';
12
var currentTime, duration, yt;
13
14
15
function myWindow()
16
{
17
let y = window.location.href.replace("youtube", "youtube5s");
18
let myWin = window.open(y,"Download Youtube Video","directories=no,titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=800, height=900");
19
myWin.onload = setInterval(clearPage,1000);
20
}
21
22
function clearPage()
23
{
24
try{
25
document.querySelectorAll(".col-xs-12")[8].remove();
26
document.querySelector("footer").remove();
27
document.querySelector("ul").remove();
28
document.querySelector(".navbar-header").remove();
29
}
30
catch(e)
31
{
32
return;
33
}
34
}
35
36
37
function createButton()
38
{
39
let css = document.createElement('style');