diff --git a/ext/src/compat/youtube.js b/ext/src/compat/youtube.js deleted file mode 100644 index 63b89d3..0000000 --- a/ext/src/compat/youtube.js +++ /dev/null @@ -1,60 +0,0 @@ -"use strict"; - -// Insert script before first script is run -document.addEventListener("beforescriptexecute", function onBeforeScriptExecute () { - document.removeEventListener("beforescriptexecute", onBeforeScriptExecute); - - const scriptElement = document.createElement("script"); - scriptElement.src = browser.runtime.getURL("vendor/webcomponents-lite.min.js"); - document.head.prepend(scriptElement); -}); - - -const EXT_SENDER_SCRIPT_URLS = [ - "chrome-extension://pkedcjkdefgpdelpbcmbmeomcjbeemfm/cast_sender.js" - , "chrome-extension://enhhojjnijigcajfphajepfemndkmdlo/cast_sender.js" -]; - -const SENDER_SCRIPT_URL = "https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"; - - -// Store reference to original function -const _createElement = document.createElement; - -function createElement () { - // Call original function - const element = _createElement.apply(this, arguments); - - /** - * If the new element being created is a