Skip to content

Instantly share code, notes, and snippets.

anonymous
anonymous / init.js
Created October 30, 2013 23:31
A ChatZilla plugin script that uses the "YouTube Data API v3" to grab the title, duration and publication date from youtube links others post into an IRC channel. It displays the info locally for you to see, and optionally inserts the info into your input history so just hitting Up-arrow and Enter will send it to the channel. This script won't w…
plugin.id = "youtubetitles";
/* Licensed under the Academic Free License version 3.0
- See a copy of the AFL-3.0 at https://spdx.org/licenses/AFL-3.0
- Any copyright dedicated to the public domain: https://creativecommons.org/publicdomain/zero/1.0/
*/
plugin.init =
function _init(glob) {
plugin.major = 0;
plugin.minor = 7;
plugin.version = plugin.major + "." + plugin.minor;
use warnings;
use Getopt::Std;
getopt('xytGgwsf',\%opts);
# pcm file = $opts{f}
# samples per pixel x
$xscale = $opts{x} // 1200;