// ==UserScript==
// @name           Window Downloader
// @author         Marti Planellas (beldar.cat at gmail.com)
// @namespace      www.radleb.net
// @description    Script for dowloading selected links by opening popups
// @include        *
// ==/UserScript==


document.addEventListener('keypress', function(e){
	var evtobj=window.event? event : e
	var unicode=evtobj.charCode? evtobj.charCode : evtobj.keyCode
	//alert(unicode);
	if(unicode==186){
		var txt = '';
        txt = window.getSelection().toString();
        var txt2 = txt.split('\n');
		for(var i=0;i<txt2.length;i++){
            w = window.open(txt2[i],"ventana"+i,"width=0,height=0,scrollbars=NO");
		}
	}

}, true);
