I've created a simple script that will add an audio player next to each mp3, ogg or oga link, using the HTMLv5 audio element (it requires a web browser that supports it).
The size and style of the audio player controls depends on the browser you are using.
You can check it out at UserScripts: http://userscripts.org/scripts/59722
The script is in fact shorter than this entry :P ..very simple but I still found it interesting to do.
Any suggestion, modification or just feedback is welcome.
Mostrando entradas con la etiqueta javascript. Mostrar todas las entradas
Mostrando entradas con la etiqueta javascript. Mostrar todas las entradas
martes, 13 de octubre de 2009
<Audio> play
Tags: javascript
jueves, 30 de abril de 2009
Apt-linker: easy way to install apps by clicking "apt-get install" links
Since the day that Ubuntu Gutsy was released it has been including a useful tool that allows package installing directly from the browser by means of "apt://" links:
However, the usage of this tool is not very extended in the web. that's why I've thought of writting a small script for automatically creating apturls
I hope that this script is able to ease the life of GNU/Linux users in Ubuntu (or Debian) who browse the Internet searching for software, tutorials, etc. and find apt-get/aptitude lines all around.
What this script does is to turn lines of text like this:
sudo apt-get install emacs emacs-goodies-el windows-el jde js2-mode
aptitude install freepats timidity-interfaces-extra timidity-el tuxguitar
apt://oneko
apt:bsdgames,pacman4console,moon-buggy-esd
into clickable links that will launch a graphical installer for each of the packages in the line.
Like this:
sudo apt-get install emacs emacs-goodies-el windows-el jde js2-mode
aptitude install freepats timidity-interfaces-extra timidity-el tuxguitar
apt://oneko
apt:bsdgames,pacman4console,moon-buggy-esd
If this links don't work for you then it means that you are not using Ubuntu or that you have a Debian derivative that doesn't have the apturl package installed. You can try to install it doing this:
sudo aptitude install apturl
# (this might be probably the last time you'll have to copy that on a terminal)
If you want to install this script on Firefox you will need first to install the Greasemonkey add-on (there's also versions of this add-on for other browsers, but I've not tried that).
Once you have Greasemonkey installed you will be able to install the script from HERE (and you may want to browse that website too, there are a lot of other interesting scripts).
For the making of this script I've used the GREAT help of the findAndreplace algorithm by James Padolsey, thanks!
Tags: gnu, javascript
Suscribirse a:
Entradas (Atom)