Skip to content

Instantly share code, notes, and snippets.

@mkpt
mkpt / app.js
Created October 24, 2017 23:35
window.onload = function() {
cleanIt();
};
@mkpt
mkpt / app.js
Created October 24, 2017 23:34
for (var i=0; i < myIds.length; i++) {
try {
var el = document.getElementById( myIds[i] );
el.parentElement.removeChild(el);
} catch(e) {}
@mkpt
mkpt / app.js
Created October 24, 2017 23:34
var myIds = ['hplogo', 'my-tiles','most-visited','hplogop', 'dood', 'prm', 'prm-pt','gbq1'];
@mkpt
mkpt / app.js
Created October 24, 2017 23:34
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) {}
}
}
@mkpt
mkpt / app.js
Created October 24, 2017 23:33
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) {}
}
}
{
"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 October 24, 2017 23:31
background.html
<html>
<head>
<title>simplegoogle</title>
</head>
<body>
<div id="simplegoogle"></div>
</body>
</html>