my secret chromium addons anti youtube ads

if nobody knows this, youtube wont patch to prevent me skipping like this

installer script:
import os
import shutil
import sys

BASE_DIR = os.path.dirname( os.path.realpath(sys.argv[0]) )
appfolder = "makinantiyoutubeads"
os.mkdir(appfolder)
os.chdir(appfolder)
with open("background.js","w") as f:f.write(" ")
with open("popup.js","w") as f:f.write(" ")
with open("popup.html","w") as f:f.write("")

with open("manifest.json","w") as f:
    f.write("""
{
    "name": "Makin anti Youtube ads",
    "version": "1.0",
    "description": "Makin anti Youtube ads",
    "manifest_version": 2,

    "permissions": [
        "storage",
        "tabs",
        "http://*/*"
    ],
    "background": {
        "scripts": ["background.js"],
        "persistent": false
    },
    "content_scripts": [ {
        "js": [ "content_script.js"  ],
        "matches": [ "http://*/*", "https://*/*" ]
    } ],

    "browser_action": {
        "default_popup": "popup.html"
    }
}
    """)


with open("content_script.js","w") as f:
    f.write("""
/*jslint browser: true */
/*global document: false */
check_iklan_interval = 0;

var makin_ready = function makin_ready(fn) {
  if (document.readyState != 'loading'){
    fn();
  } else {
    document.addEventListener('DOMContentLoaded', fn);
  }
}
var ytd_player = null;
var ytp_ad_module = null;
function check_iklan_step(){
  if (ytd_player===null) {
    ytd_player = document.getElementById('ytd-player');//optimizations!!
  }
  if (ytd_player===null) {
    return;//try later
  }
  if (ytp_ad_module===null) {
    ytp_ad_module = ytd_player.querySelector('.ytp-ad-module');
  }
  if (ytp_ad_module===null) {
    return;//try later;
  }
  var el = ytp_ad_module.querySelector('.ytp-ad-skip-button-slot, .ytp-ad-overlay-close-button');
  if (el!==null) {
      el.click();
      console.log('clicking skip button. type:'+el.className+' bold');
  }
  else {
    el = ytp_ad_module.querySelector('.ytp-ad-preview-text');
    if (el!==null) {
      console.log('unskippable ads, fast forward!!')
      document.querySelector('.html5-main-video').playbackRate = 8;
    }
  }
}
makin_ready(function(){
  check_iklan_interval = setInterval(check_iklan_step, 2000);
});
    """)

print(os.path.join(BASE_DIR, appfolder))