Replacement background image not showing when using GreaseMonkey
Posted
by Dave C
on Stack Overflow
See other posts from Stack Overflow
or by Dave C
Published on 2010-04-19T03:31:07Z
Indexed on
2010/04/19
3:33 UTC
Read the original article
Hit count: 344
css
|greasemonkey
I'm trying to use GreaseMonkey to replace the background image of a DIV on bing.com. It's a pretty straightforward call to GM_addstyle:
GM_addStyle(".sw_logo "
+"{background:url('http://www.kpao.org/blog/kpao-bing-logo-inverse.png') "
+"no-repeat 21px 7px transparent}");
However, the image doesn't show up. It's clearly visible in Firebug, and as I twiddle with the CSS in Firebug, I can get it to show up. But it doesn't stay. Any thoughts on why? Maybe it's a bug, but then maybe I'm missing something obvious. Thanks!
© Stack Overflow or respective owner