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"