nah screw youtube's adblock policy
当前为
// ==UserScript==
// @name Crappy Adblockblockblock
// @namespace https://greasyfork.org/en/users/945115-unmatchedbracket
// @match *://www.youtube.com/*
// @grant none
// @version 1.0.2
// @run-at document-body
// @author Unmatched Bracket
// @description nah screw youtube's adblock policy
// @license The Unlicense
// ==/UserScript==
function modulate () {
let ef = window.ytcfg.data_.EXPERIMENT_FLAGS;
let i = 0;
Object.keys(ef).forEach(k => {
if (((i % 4) == 0) && ((i % 3) == 2)) {
ef[k] = !ef[k];
}
i++;
})
}
function tick () {
if (window.ytcfg) modulate()
else requestAnimationFrame(tick)
}
if (window.ytcfg) modulate()
else tick()