Wednesday, October 26, 2011

Mute Pandora Adverts (or anything really) using a keyboard shortcut

Use Automator to create a service that runs this applescript

set myVol to output volume of (get volume settings)
set volume 0
delay 15
set volume (myVol / 14.5)

Then in System Prefs in Keyboard > Keyboard shortcuts add a shortcut to the service.

Done. 15 sec delay to volume which does most pandora ads, not enough, hit it again... never hear about 5 hour energy again.

Don't ask me why you have to divide the volume by 14.5 but if you don't it gets incrementally higher every time....

Wednesday, October 19, 2011

Replace a form submit button with an image using just CSS

form input[type=submit] {
    background : url(../images/submit.gif) no-repeat center center;
    width : 90px;
    height :42px;
    border : none;
    color : transparent;
    font-size : 0margin: 0px;
    padding: 0px;
    float: right;
adapted from