Skip to content

Instantly share code, notes, and snippets.

@RagnowProductions
Created March 8, 2022 15:05
Show Gist options
  • Save RagnowProductions/87135d01b3579c245ec27221d23501dd to your computer and use it in GitHub Desktop.
Save RagnowProductions/87135d01b3579c245ec27221d23501dd to your computer and use it in GitHub Desktop.
New Tab Google Chrome [REAL SOURCE CODE]
<html>
<html dir="ltr" lang="en">
<head>
<meta charset="utf-8">
<title>New Tab</title>
<style>
body {
background: #A71C1C;
margin: 0;
}
#backgroundImage {
border: none;
height: 100%;
pointer-events: none;
position: fixed;
top: 0;
visibility: hidden;
width: 100%;
}
[show-background-image] #backgroundImage {
visibility: visible;
}
</style>
</head>
<body>
<iframe id="backgroundImage" src="chrome-untrusted://new-tab-page/custom_background_image?url=chrome-untrusted%3A%2F%2Fnew-tab-page%2Fbackground.jpg%3Fts%3D1646751698"></iframe>
<ntp-app></ntp-app>
<script type="module" src="new_tab_page.js"></script>
<link rel="stylesheet" href="chrome://resources/css/text_defaults_md.css">
<link rel="stylesheet" href="shared_vars.css">
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment