因此,我想将Opera浏览器中的特定“协议”与OSX上的shell脚本关联起来。
因此,在歌剧中,我做到了:
Advanced Tab ->程序添加了“myProtocol”,并将其设置为与其他应用程序'~/bin/myScript.sh'Applied设置一起打开,等等。
现在,当我转到myProtocol://ome.url.or. opera时,opera正在调用我的脚本。但是,$*显示传递给脚本的唯一参数是OSX。
也就是说,在脚本中,行
echo $0 called with $*
输出
/Users/me/bin/myScript.sh called with
我想嵌入youtube播放器,也必须使用它的事件。它在chrome和firefox上运行良好,但播放器不能在Opera中加载。我希望它能在歌剧中发挥作用。寻求你的帮助。
提前谢谢。
我使用以下代码。
//Load player api asynchronously.
var tag = document.createElement('script');
tag.src = "http://www.youtube.com/player_api";
var firstScriptTag = document.getElementsByTagN