A Pen by Fennec The Fox on CodePen.
Created
March 8, 2022 15:05
-
-
Save RagnowProductions/87135d01b3579c245ec27221d23501dd to your computer and use it in GitHub Desktop.
New Tab Google Chrome [REAL SOURCE CODE]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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