Skip to content

Commit

Permalink
update YouTube.js
Browse files Browse the repository at this point in the history
  • Loading branch information
hoyois committed Jun 6, 2015
1 parent 73cbc5a commit ca897d4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ClickToPlugin.safariextension/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<key>Author</key>
<string>Marc Hoyois</string>
<key>Builder Version</key>
<string>10600.4.10.7</string>
<string>10600.6.3</string>
<key>CFBundleDisplayName</key>
<string>ClickToPlugin</string>
<key>CFBundleIdentifier</key>
Expand Down
2 changes: 1 addition & 1 deletion ClickToPlugin.safariextension/global.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ if(settings.version < 77) {
}
settings.killers = tmpArray;
}
settings.version = 79;
settings.version = 80;

// LOCALIZATION
localize(GLOBAL_STRINGS, settings.language);
Expand Down
2 changes: 1 addition & 1 deletion ClickToPlugin.safariextension/killers/YouTube.js
Original file line number Diff line number Diff line change
Expand Up @@ -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", {
Expand Down

0 comments on commit ca897d4

Please sign in to comment.