GM_addStyle does not work

I am trying to make this a very simple script to replace the title with google:

// ==UserScript== // @name Hell yeah // @description HELL YEAH // @include http://www.google.* // ==/UserScript== GM_addStyle("div #logo {background-image: url('http://img220.imageshack.us/img220/5676/1251559315224.jpg') !important}"); 

But when I try to use it, nothing happens. What am I doing wrong?

+4
source share
2 answers

This is what I need:

 document.getElementById('logo').src = 'http://img220.imageshack.us/img220/5676/1251559315224.jpg'; 

Although the image displayed on google

seems strange
-5
source

I think you should add this:

  // @grant GM_addStyle 
+11
source

All Articles