Remove compat

This commit is contained in:
hensm
2018-06-10 02:04:25 +01:00
parent b63ddb9df9
commit 7cb626841f
3 changed files with 3 additions and 20 deletions

3
.gitignore vendored Normal file
View File

@@ -0,0 +1,3 @@
app/node_modules/
ext/node_modules/
ext/dist/

View File

@@ -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);

View File

@@ -16,7 +16,6 @@ module.exports = {
, "content" : `${include_path}/content.js` , "content" : `${include_path}/content.js`
, "contentSetup" : `${include_path}/contentSetup.js` , "contentSetup" : `${include_path}/contentSetup.js`
, "mediaCast" : `${include_path}/mediaCast.js` , "mediaCast" : `${include_path}/mediaCast.js`
, "compat/youtube" : `${include_path}/compat/youtube.js`
} }
, output: { , output: {
filename: "[name].js" filename: "[name].js"