Skip to content

Instantly share code, notes, and snippets.

View app.js
window.onload = function() {
cleanIt();
};
View app.js
for (var i=0; i < myIds.length; i++) {
try {
var el = document.getElementById( myIds[i] );
el.parentElement.removeChild(el);
} catch(e) {}
View app.js
var myIds = ['hplogo', 'my-tiles','most-visited','hplogop', 'dood', 'prm', 'prm-pt','gbq1'];
View app.js
var cleanIt = function() {
var myIds = ['hplogo', 'my-tiles','most-visited','hplogop', 'dood', 'prm', 'prm-pt','gbq1'];
for (var i=0; i < myIds.length; i++) {
try {
var el = document.getElementById( myIds[i] );
el.parentElement.removeChild(el);
} catch(e) {}
}
}
View app.js
var cleanIt = function() {
var myIds = ['hplogo', 'my-tiles','most-visited','hplogop', 'dood', 'prm', 'prm-pt','gbq1'];
for (var i=0; i < myIds.length; i++) {
try {
var el = document.getElementById( myIds[i] );
el.parentElement.removeChild(el);
} catch(e) {}
}
}
View manifest.json
{
"manifest_version": 2,
"name":"simplegoogle",
"version":"0.0.1",
"description":"Remove doodle and text from Google.com",
"icons":{
"128":"icons/icon128.png",
"48":"icons/icon48.png"
},
"homepage_url":"https://github.com/mkpt/simplegoogle",
@mkpt
mkpt / background.html
Created Oct 24, 2017
background.html
View background.html
<html>
<head>
<title>simplegoogle</title>
</head>
<body>
<div id="simplegoogle"></div>
</body>
</html>