Index: safari/include.youtube.js |
diff --git a/safari/include.youtube.js b/safari/include.youtube.js |
index 5b76e2435e9d5d157d0fc31452cabf2163c43af3..dc19da24240f3db22ad728764f57c138df1fa284 100644 |
--- a/safari/include.youtube.js |
+++ b/safari/include.youtube.js |
@@ -86,16 +86,6 @@ |
player.parentNode.replaceChild(newPlayer, player); |
} |
- function runInPage(fn, arg) |
- { |
- var script = document.createElement("script"); |
- script.type = "application/javascript"; |
- script.async = false; |
- script.textContent = "(" + fn + ")(" + arg + ");"; |
- document.documentElement.appendChild(script); |
- document.documentElement.removeChild(script); |
- } |
- |
document.addEventListener("beforeload", function(event) |
{ |
if ((event.target.localName == "object" || event.target.localName == "embed") && /:\/\/[^\/]*\.ytimg\.com\//.test(event.url)) |