Wednesday, 24 May 2017

Copy Flashfiles in firefox

Copy Flashfiles in firefox


Read all about it here

or use this script on your desktop, or make it yourself:



!/bin/bash
#
# FLASHCOPY
#
# Will ieterate through all open copies flashplayer and copy flash video to the
# current folder (or specified directory) with the .flv extension added.

args=("$@")

args=`echo $args | sed s/[/]$//`

pids=`eval pgrep -f flashplayer`
for pid in $pids
do
lsoutput=$(lsof -p $pid | grep /tmp/Flash[^ ]*)

IFS=$
for line in $lsoutput; do
lsout1=`echo $line | awk {print "/proc/" $2 "/fd/" $4} | sed s/[rwu]$//`
lsout2=`echo $line | awk {print $9} | awk -F / {print $3}`

if [ -n "$args" ];then
if [ -d $args ]; then
echo "Copying $lsout2 to $args/"
eval "cp $lsout1 $args/$lsout2.flv"
else
echo "The directory "$args" doesnt exist"
break
fi
else
echo "Copying $lsout2"
eval "cp $lsout1 $lsout2.flv"
fi

done
done
download
alternative link download

Like the Post? Do share with your Friends.