views:

115

answers:

1

Hi I am trying to make this very simple script to replace the header on 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?

A: 

This is what I needed:

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

Although there appears to be something odd with the image appearing on google

Jonno_FTW