diff options
author | portix <portix@gmx.net> | 2014-02-23 12:05:03 +0100 |
---|---|---|
committer | portix <portix@gmx.net> | 2014-02-23 12:05:03 +0100 |
commit | 0730c038a2f208a0b7fbb924b21579183419e8b7 (patch) | |
tree | caeb8876f1d5bfc8d9134cdac879b3def026757e | |
parent | 07f1afc0014631523b2e1a187aad0da09b78e35d (diff) | |
download | dwb-0730c038a2f208a0b7fbb924b21579183419e8b7.zip |
Adding quvihints to examples
-rw-r--r-- | examples/js/quvihints.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/examples/js/quvihints.js b/examples/js/quvihints.js new file mode 100644 index 00000000..68fd91dc --- /dev/null +++ b/examples/js/quvihints.js @@ -0,0 +1,14 @@ +//!javascript +// Creates hints for video sites supported by quvi. + +var videoplayer = "mplayer"; + +hint(";v", function(wv, resource) { + if (resource[0] !== "@") + { + system.spawn("quvi dump -s best --exec '" + videoplayer + " %u' " + resource); + return true; + } +}); + + |