YePpHa / YouTubeCenter

YouTube Center is a userscript designed to expand the functionality of YouTube. It includes the ability to download the video you're watching, auto selecting your preferred video quality and much more.
MIT License
2.89k stars 520 forks source link

OSX 10.10 Yosemite Safari 8.0 bug with video resizing #1042

Open leukocyte opened 10 years ago

leukocyte commented 10 years ago

Hello again. I have just recently updated to OS X 10.10, and using Safari 8.0 with youtube centre I have seen this bug:

youtube center safari 8 bug

I am using the most recent developer build of youtube centre for safari, and SPF is disabled. Switching the user agent to Safari 7.1 fixes the issue.

This is my error console output:

[Log] Domain registered www.youtube.com. (YouTubeCenter.user.js, line 25127)
[Warning] Invalid CSS property declaration at: * (www-player-vflvNJmwf.css, line 1, x10)
[Log] [PageReadinessListener] At event => headerInitialized watch (watch, line 1830)
[Log] Language set to en-US because it could not be auto-detected yet (watch, line 1830)
[Log] [PageReadinessListener] At event => bodyInitialized watch (watch, line 1830)
[Log] Adding player shortcuts to document (watch, line 1830)
[Log] [SPF] ready null (watch, line 1830)
[Error] safari object is unavailable in a frame on this page. This is a bug with Safari that has existed ever since extentions were available. If you're an extension developer, you can file a bug report at http://bugreport.apple.com/ The issue occurs when a frame's source is not originally a document, such as when it is javascript:"". Changing the source of the frame causes the newly loaded webpage to not have access to the safari object.
    global code (safari.js, line 170)
    appendChild ([native code], line 0)
    la (spf.js, line 11)
    va (spf.js, line 14)
    ua (spf.js, line 14)
    ta (spf.js, line 12)
    sa (spf.js, line 12)
    init (spf.js, line 57)
    enable (base.js, line 145)
    Ec (base.js, line 36)
    (anonymous function) (base.js, line 150)
    global code (base.js, line 150)
[Error] TypeError: undefined is not a function (evaluating 'ResourceCanLoad(beforeLoad, 'parentURL')')
    global code (blocker.js, line 50)
    appendChild ([native code], line 0)
    la (spf.js, line 11)
    va (spf.js, line 14)
    ua (spf.js, line 14)
    ta (spf.js, line 12)
    sa (spf.js, line 12)
    init (spf.js, line 57)
    enable (base.js, line 145)
    Ec (base.js, line 36)
    (anonymous function) (base.js, line 150)
    global code (base.js, line 150)
[Error] TypeError: undefined is not a function (evaluating '_('Alert')')
    global code (after.js, line 1006)
    appendChild ([native code], line 0)
    la (spf.js, line 11)
    va (spf.js, line 14)
    ua (spf.js, line 14)
    ta (spf.js, line 12)
    sa (spf.js, line 12)
    init (spf.js, line 57)
    enable (base.js, line 145)
    Ec (base.js, line 36)
    (anonymous function) (base.js, line 150)
    global code (base.js, line 150)
[Log] [PageReadinessListener] At event => bodyInteractive watch (watch, line 1830)
[Log] [Thumbnail] Setup has begun... (watch, line 1830)
[Log] [Storage] Saving Settings (watch, line 1830)
[Log] [Worker] Addiong new job (UCdJdEguB1F1CiYe7OEi3SBg) (watch, line 1830)
[Log] [Worker] Executing new job (UCdJdEguB1F1CiYe7OEi3SBg) (watch, line 1830)
[Log] [ActionPanel] Loading... (watch, line 1830)
[Log] [Player modifyConfig] => watch (watch, line 1830)
[Log] [Player:setPlayerType] Requesting player type change to html5 (watch, line 1830)
[Log] [Player:setPlayerType] Setting player type from null to html5 (watch, line 1830)
[Log] [Player Type] HTML5 (watch, line 1830)
[Log] [Player:getQuality] Most preferred available quality: medium (watch, line 1830)
[Log] [Player Ratio] Player ratio set to 1.7777777777777777 (watch, line 1830)
[Log] Chaning csi_page_type from watch,watch7ad_html5 to watch, watch7 (watch, line 1830)
[Log] Keeping the aspect (watch, line 1830)
[Log] [Playlist] Disabled (watch, line 1830)
[Log] [HTML5 Player] Setting player theme to dark (watch, line 1830)
[Log] [HTML5 Player] Setting player progress color to red (watch, line 1830)
[Log] [HTML5 Player] Setting autohide to 2 (watch, line 1830)
[Log] Checking for updates in -0.005276388888888889 hours... (watch, line 1830)
[Log] Checking for updates now... (watch, line 1830)
[Log] [Update] This is a dev build. (watch, line 1830)
[Log] Checking for updates... (watch, line 1830)
[Log] [Title Listener] "" => "Clock Tower - JonTron" (watch, line 1830)
[Log] [Tab Events] Sending new settings to other open tabs. (watch, line 1830)
[Log] Got Update Response (watch, line 1830)
[Log] [Update] Current dev build #406. Your build number #406 (watch, line 1830)
[Log] No new updates available (watch, line 1830)
[Log] [Worker] Job completed (UCdJdEguB1F1CiYe7OEi3SBg) (watch, line 1830)
[Log] [PageReadinessListener] At event => bodyComplete watch (watch, line 1830)
[Log] [Guide] Configurating the state updater! (watch, line 1830)
[Log] [PageReadinessListener] Stopping interval (watch, line 1830)
[Log] [Player Listener] Has begun the setup... (watch, line 1830)
[Log] [Player modifyConfig] => watch (watch, line 1830)
[Log] [Player:setPlayerType] Requesting player type change to html5 (watch, line 1830)
[Log] [Player:setPlayerType] Type is already html5! (watch, line 1830)
[Log] [Player Type] HTML5 (watch, line 1830)
[Log] [Player:getQuality] Most preferred available quality: medium (watch, line 1830)
[Log] [Player Ratio] Player ratio set to 1.7777777777777777 (watch, line 1830)
[Log] Chaning csi_page_type from watch, watch7_html5 to watch, watch7 (watch, line 1830)
[Log] Keeping the aspect (watch, line 1830)
[Log] [Playlist] Disabled (watch, line 1830)
[Log] [HTML5 Player] Setting player theme to dark (watch, line 1830)
[Log] [HTML5 Player] Setting player progress color to red (watch, line 1830)
[Log] [HTML5 Player] Setting autohide to 2 (watch, line 1830)
[Log] [Config Update] Updating as page https://www.youtube.com/watch?v=foXTsDKvRgc&spfreload=10%20Message%3A%20history.pushState%20is%20not%20a%20function.%20(url%3A%20https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DfoXTsDKvRgc) (watch, line 1830)
[Log] [onYouTubePlayerReady] => updateConfig (watch, line 1830)
[Log] [Config Update] Updating as page watch (watch, line 1830)
[Log] [Player:getQuality] Most preferred available quality: medium (watch, line 1830)
[Log] [Player:SetQuality] Setting quality to medium (watch, line 1830)
[Log] [Player:setPlaybackState] State is changed to 2 (watch, line 1830)
[Log] [Player:setPlaybackState] Preferred state: 2, current state: 3 (watch, line 1830)
[Log] [Player:getQuality] Most preferred available quality: medium (watch, line 1830)
[Log] [Player:SetQuality] Setting quality to medium (watch, line 1830)
[Log] [Player:getQuality] Most preferred available quality: medium (watch, line 1830)
[Log] [Player:SetQuality] Setting quality to medium (watch, line 1830)
[Log] [Player:setPlaybackState] Preferred state: 2, current state: 3 (watch, line 1830, x3)
[Log] [Player Listener] Event onStateChange was called with [1, 1] (watch, line 1830)
[Log] [Player:setPlaybackState] Preferred state: 2, current state: 1 (watch, line 1830)
[Log] [Player Listener] Event onVolumeChange was called with [ (watch, line 1830)
Object
]
[Log] [Player Listener] Event onVolumeChange was called with [ (watch, line 1830)
Object
]
[Log] [ActionPanel] Loading... (watch, line 1830)
[Log] [Player Listener] Event onStateChange was called with [2, 1] (watch, line 1830)
[Log] [Player Listener] Event onStateChange was called with [1, 1] (watch, line 1830)
[Log] [Tab Event] Calling player.pauseVideo(); (watch, line 1830)
[Log] [Title Listener] "Clock Tower - JonTron" => "▶ Clock Tower - JonTron" (watch, line 1830)
[Log] [Title Listener] "▶ Clock Tower - JonTron" => "Clock Tower - JonTron" (watch, line 1830)
[Log] [Player Listener] Event onPlaybackQualityChange was called with ["medium", false] (watch, line 1830)
[Log] [Storage] Saving Settings (watch, line 1830)
[Log] [ActionPanel] Loading... (watch, line 1830)
[Log] [ActionPanel] Setup has begun! (watch, line 1830)
[Log] [ActionPanel] Adding/Removing listeners (watch, line 1830)
[Log] [Player Listener] Event onStateChange was called with [2, 1] (watch, line 1830)
[Error] TypeError: undefined is not an object (evaluating 'linkHref.substr')
    (anonymous function) (injectedscript.js, line 62)
[Log] [Tab Events] Sending new settings to other open tabs. (watch, line 1830)
[Error] TypeError: undefined is not an object (evaluating 'linkHref.substr')
    (anonymous function) (injectedscript.js, line 62)
[Log] [Storage] Saving Settings (watch, line 1830)
[Log] [Tab Events] Sending new settings to other open tabs. (watch, line 1830)

Thank you so much for your assistance.

YePpHa commented 10 years ago

This is caused by YouTube Center not being able to correctly enable an experimental feature. I'm already aware that his sometimes happens and I will try to get it fixed soon.

AlexVentura commented 9 years ago

I have the same problem, yesterday I had Mavericks and everything went well with safari and youtube center. Now I have juste installed Yosemite and I got the same problem as mentioned by leukocyte I would ask you If any body knows how to get this problem fixed?

Thanks!