#!/bin/sh # Select an URL (eg. in firefox nav bar) and run this (most handy when bound to # a keyboard shortcut). You get a popup with the username/password combo's from # bugmenot. #test="http://www.washingtonpost.com/ac2/wp-dyn?node=admin/registration/register&destination=login&nextstep=gather&application=reg30-artsandliving&applicationURL=http://www.washingtonpost.com/wp-dyn/content/article/2008/01/08/AR2008010804626.html" #echo "$test" | xclip -selection primary url=`xclip -o -selection primary | grep -o "^[^?]\+" | \ grep -o "https\?://\(\w\+\.\)\?\w\+\.\w\+" | \ grep -o "\w\+\.\w\+$"` #echo $url content=`lynx -dump "http://www.bugmenot.com/view.php?url=$url"` echo "$content" | awk '/Username/,/Password/ { print $2}' | \ awk 'ORS=NR%2?"\n":"\n\n"' | grep -v "______________" | \ zenity --title="BugMeNot: $url" --text-info