Skip to content

Instantly share code, notes, and snippets.

@jonasjohansson
Last active December 7, 2019 14:30
Show Gist options
  • Save jonasjohansson/7dd3e3069911f25d845e5aeea0dcce65 to your computer and use it in GitHub Desktop.
Save jonasjohansson/7dd3e3069911f25d845e5aeea0dcce65 to your computer and use it in GitHub Desktop.
normalize-igem
<html>
<script>
document.addEventListener("DOMContentLoaded", event => {
document.body.removeAttribute("class");
var elementsRemove = document.querySelectorAll("a#top, div#top_title");
for (var el of elementsRemove) {
el.parentNode.removeChild(el);
}
for (var id of [
"globalWrapper",
"mw-content-text",
"bodyContent",
"content",
"HQ_page"
]) {
el = document.getElementById(id);
el.removeAttribute("id");
}
});
</script>
<style>
body {
background-color: transparent;
}
h1 {
border-bottom: 0;
}
a:visited {
color: inherit !important;
}
a:hover {
text-decoration: none !important;
}
h2,
h3,
h4,
h5 {
font-family: inherit;
}
.mw-content-ltr > p {
display: none;
}
</style>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment