YouTube - Button Container (@require)

Creates a button container, under the video, onto which buttons can be added

此脚本不应直接安装,它是一个供其他脚本使用的外部库。如果您需要使用该库,请在脚本元属性加入:// @require https://update.greasyfork.org/scripts/2104/5493/YouTube%20-%20Button%20Container%20%28%40require%29.js

作者
JoeSimmons
版本
1.0.2
创建于
2014-06-04
更新于
2014-06-04
许可证
LGPL version 3 or any later version

Syntax: addButtonToContainer( text, func [, ID] );



Arguments:

  • text [string]: The text for the button.
  • func [function]: The function to be called when the button is clicked upon.
  • ID (optional) [string]: The ID to be used for the button element.



Example: addButtonToContainer('A Test Button', function () { alert('Test.'); }, 'test-button');