r/ScriptSwap • u/giftits • Jan 11 '15
[sh] Watch porn on Linux using FF + mplayer
Start a few isolated FF instances (note: install Adblock in each profile!):
#!/bin/sh
for i in 1 2 3; do
firefox -private -no-remote -profile ~/.private_profiles/p$i &
done
Find some (ugh) Flash videos, and let them buffer. Drag & drop the links to the isolated profiles, or else the single, monolithic Flash plugin instance is likely to crash and kill all the buffers.
Enjoy your videos in a dedicated media player:
#!/bin/sh
find $(for i in `pgrep "contain"` ; do
ls -1d /proc/$i/fd
done) -size 1M \
| xargs file -iL \
| sed -n 's/^\([^:]*\): *video\/.*/\1/p' \
| xargs mplayer -forceidx -fs "$@"
5
Upvotes
3
u/zouhair Jan 12 '15 edited Jan 12 '15
Alternatively and with a lot less hassle youtube-dl.
EDIT: Livestreamer does it too for live streams and their vods.
2
u/Mindproxy Jan 11 '15
Can something similar to this be done in Chromium/chrome?