Safari - disable web page background music?

Joined
Dec 3, 2007
Messages
74
Reaction score
1
Points
8
Location
Canada
Your Mac's Specs
MacBook 2.4 GHz Intel (unibody), 2 GB RAM; iPhone 3Gs
I'm trying to disable the background music that automatically loads when I open a page because it's embedded in the site. I can't seem to get any of the CSS stuff to work. This is what I've been using:

embed[src$=".mid"],
embed[src$=".wav"],
embed[src$=".mp3"]
{display: none ! important; }
and/or

embed[src*=".mp3"] { display: none !important; }
embed[src*=".wma"] { display: none !important; }
embed[src*=".wav"] { display: none !important; }
embed[src*=".mid"] { display: none !important; }
embed[src*=".mp4"] { display: none !important; }
embed[src*=".mp2"] { display: none !important; }
embed[name="plugin"]:first-child { display: inline !important; }​

Any idea if there's another way to block these in Safari? This doesn't work. I'm assuming the custom CSS file works similar in Firefox and Safari but this is not working for me... If you could help me that'd rock. I hate website background music, it's one of the most annoying things... Thank you!
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top