hoyois / clicktoplugin

Prevents plug-ins from loading automatically in Safari
http://hoyois.github.com/safariextensions/clicktoplugin/
228 stars 44 forks source link

updateDecoder no longer works #158

Closed lechium closed 8 years ago

lechium commented 8 years ago

there is a new base.js file and the updateDecoder function in Youtube.js killer dies on this line specifically

var index = xhr2.responseText.indexOf(";var " + /^[$_A-Za-z0-9]+/.exec(match[1])[0] + "={"); with this error

[Error] TypeError: null is not an object (evaluating '/^[$_A-Za-z0-9]+/.exec(match[1])') (anonymous function)

the new base.js file is here http://s.ytimg.com/yts/jsbin/player-en_US-vflXJM_5_/base.js

hoyois commented 8 years ago

Already fixed here: https://raw.githubusercontent.com/hoyois/plugin-to-html5/master/YouTube.js BTW, this variant is immune to these changes: https://raw.githubusercontent.com/hoyois/plugin-to-html5/master/YouTubeXHR.js (although it has other disadvantages).

hoyois commented 8 years ago

Fixed in v3.2.