Advertisement
metalx1000

Share a Random Films By Kris tutorial video

Nov 12th, 2014
694
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.85 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. browser="google-chrome"
  4. info="$(wget "http://filmsbykris.com/site_data/video.lst" -q -O-|shuf|head -n1)"
  5. title="$(echo -n "$info"|cut -d\| -f1)"
  6. id="$(echo -n "$info"|cut -d\| -f2)"
  7.  
  8. $browser "https://plus.google.com/share?url=https://www.youtube.com/watch?v=$id=en"
  9. $browser "https://twitter.com/intent/tweet?url=https://www.youtube.com/watch?v=$id&text=$title:&via=YouTube&related=YouTube,YouTubeTrends,YTCreators"
  10. $browser "https://www.blogger.com/blog-this.g?n=$title&source=youtube&b=%3Ciframe+width=%22480%22+height=%22270%22+src=%22https://www.youtube.com/embed/$id%22+frameborder=%220%22+allowfullscreen%3E%3C/iframe%3E&eurl=https://i.ytimg.com/vi/$id/hqdefault.jpg"
  11. $browser "http://www.reddit.com/submit?url=http%3A%2F%2Fwww.youtube.com%2Fattribution_link%3Fa%3DMBqOP7rBrbo%26u%3D%252Fwatch%253Fv%253D$id%2526feature%253Dshare&title=$title"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement