From ca897d44133987200fa466c35d6878e01e3ca85a Mon Sep 17 00:00:00 2001 From: Marc Hoyois Date: Sat, 6 Jun 2015 15:41:22 -0400 Subject: [PATCH] update YouTube.js --- ClickToPlugin.safariextension/Info.plist | 2 +- ClickToPlugin.safariextension/global.js | 2 +- ClickToPlugin.safariextension/killers/YouTube.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ClickToPlugin.safariextension/Info.plist b/ClickToPlugin.safariextension/Info.plist index 00ffad7..e6c1339 100644 --- a/ClickToPlugin.safariextension/Info.plist +++ b/ClickToPlugin.safariextension/Info.plist @@ -5,7 +5,7 @@ Author Marc Hoyois Builder Version - 10600.4.10.7 + 10600.6.3 CFBundleDisplayName ClickToPlugin CFBundleIdentifier diff --git a/ClickToPlugin.safariextension/global.js b/ClickToPlugin.safariextension/global.js index ac10e9e..183156c 100644 --- a/ClickToPlugin.safariextension/global.js +++ b/ClickToPlugin.safariextension/global.js @@ -11,7 +11,7 @@ if(settings.version < 77) { } settings.killers = tmpArray; } -settings.version = 79; +settings.version = 80; // LOCALIZATION localize(GLOBAL_STRINGS, settings.language); diff --git a/ClickToPlugin.safariextension/killers/YouTube.js b/ClickToPlugin.safariextension/killers/YouTube.js index 3c1198a..7764d51 100644 --- a/ClickToPlugin.safariextension/killers/YouTube.js +++ b/ClickToPlugin.safariextension/killers/YouTube.js @@ -13,7 +13,7 @@ if(window.safari) { // ... on /user pages script += "document.addEventListener(\"DOMContentLoaded\",function(){var v=document.getElementById(\"upsell-video\");if(v)v.dataset.swfConfig=v.dataset.swfConfig.replace(/(min_version[^\\\\d]*)\\\\d+\\\\.\\\\d+\\\\.\\\\d+/,\"$10.0.0\");},true);"; script += "'; document.documentElement.appendChild(s);"; - safari.extension.addContentScript(script, ["http://www.youtube.com/*", "https://www.youtube.com/*"], [], false); + safari.extension.addContentScript(script, ["http://www.youtube.com/*", "https://www.youtube.com/*"], ["http://www.youtube.com/embed/", "https://www.youtube.com/embed/"], false); } addKiller("YouTube", {