I've tried running this script to change up the Google homepage logo and 
background but to no avail (with the Nov 16th situation). Can anyone see 
where I'm going wrong? 

// ==UserScript==
// @name          Google BG
// @author        12345
// @namespace     http://localhost/
// @description   Google BG
// @version       1
// @include       http://*.google.*/*
// @include       https://*.google.*/*
// @resource      filebg nature.jpg
// @resource      filelogo google.png
// ==/UserScript==
// 
--------------------------------------------------------------------------------------------------------------------------------
var oldLogo = document.getElementById('hplogo');
var newLogo = document.createElement('img');
newLogo.id = "User-Logo";
newLogo.border = 'no'
newLogo.src = GM_getResourceURL ("filelogo");
oldLogo.parentNode.replaceChild(newLogo, oldLogo);
// 
--------------------------------------------------------------------------------------------------------------------------------
//
var b = document.body;
b.style.background = '#ccc url("' + GM_getResourceURL ("filebg") + '") 
no-repeat top left';
b.style.backgroundSize = "100% 102%";


The local images are in the extension folder belonging to the scipt with 
the correct names (i.e nature.jpg and google.png). Going to 
https://www.google.co.uk/ gives me the normal homepage. 

-- 
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/greasemonkey-users/-/S8xc_RGDruMJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/greasemonkey-users?hl=en.

Reply via email to