YouTube - Button Container (@require)

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

Ce script ne devrait pas être installé directement. C'est une librairie créée pour d'autres scripts. Elle doit être inclus avec la commande // @require https://updategreasyfork.deno.dev/scripts/2104/5493/YouTube%20-%20Button%20Container%20%28%40require%29.js

Auteur
JoeSimmons
Version
1.0.2
Créer
2014-06-04
Mis à jour
2014-06-04
Taille
6,18 ko
Licence
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');