From 7cb626841f64877e30e5946a25e08a3472fd74c2 Mon Sep 17 00:00:00 2001 From: hensm Date: Sun, 10 Jun 2018 02:04:25 +0100 Subject: [PATCH] Remove compat --- .gitignore | 3 +++ ext/src/compat/youtube.js | 19 ------------------- ext/webpack.config.js | 1 - 3 files changed, 3 insertions(+), 20 deletions(-) create mode 100644 .gitignore delete mode 100644 ext/src/compat/youtube.js diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e8bb37e --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +app/node_modules/ +ext/node_modules/ +ext/dist/ diff --git a/ext/src/compat/youtube.js b/ext/src/compat/youtube.js deleted file mode 100644 index ad23f6f..0000000 --- a/ext/src/compat/youtube.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; - -function injectScript (url) { - const script = document.createElement("script"); - script.src = url; - script.addEventListener("load", ev => { - script.remove(); - }); - - document.documentElement.appendChild(script); -} - -injectScript(browser.runtime.getURL("shim/bundle.js")); -//injectScript("https://s.ytimg.com/yts/jsbin/www-tampering-vflyYlECh/www-tampering.js"); -//injectScript("https://s.ytimg.com/yts/jsbin/www-prepopulator-vfl8hLntF/www-prepopulator.js"); -//injectScript("https://s.ytimg.com/yts/jsbin/webcomponents-lite.min-vfl2VqBkx/webcomponents-lite.min.js"); - -console.log(script); - diff --git a/ext/webpack.config.js b/ext/webpack.config.js index 8d437ee..fd68722 100755 --- a/ext/webpack.config.js +++ b/ext/webpack.config.js @@ -16,7 +16,6 @@ module.exports = { , "content" : `${include_path}/content.js` , "contentSetup" : `${include_path}/contentSetup.js` , "mediaCast" : `${include_path}/mediaCast.js` - , "compat/youtube" : `${include_path}/compat/youtube.js` } , output: { filename: "[name].js"