Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: safari/include.youtube.js

Issue 29347034: Issue 1727 - Prevent circumvention via WebSocket (Closed)
Patch Set: Throw correct exceptions if constructor is used improperly Created Aug. 9, 2016, 4:53 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« include.preload.js ('K') | « lib/requestBlocker.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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))
« include.preload.js ('K') | « lib/requestBlocker.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld