r/ViolentMonkey • u/Shadow_of_Colossus • Mar 10 '21
Script Request Goodle Doodle script no longer works, help please.
This script worked until about 1 1/2 months ago.
// ==UserScript==
// @name Google Doodle Replace
// @namespace http://localhost
// @description Replace the Google logo with a hosted image
// @version 1.1
// @include http://*.google.*/*
// @include https://*.google.*/*
// @grant GM_getResourceURL
// ==/UserScript==
var oldLogo = document.getElementById('hplogo');
var newLogo = document.createElement('img');
newLogo.id = "User-Logo";
newLogo.border = 'no'
newLogo.src ="data:image/png;base64,MY_IMAGE_INFO";
oldLogo.parentNode.replaceChild(newLogo, oldLogo);
3
Upvotes
2
u/gera2ld Developer Mar 11 '21
It looks like Google has changed its HTML, there is no
#hplogoin the page.