Chrome newtab extension exemple
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
body { | |
margin: 0px; | |
font-size: 40px; | |
font-family: system-ui, sans-serif; | |
} | |
.my-newtab { | |
display: flex; | |
align-items: center; | |
justify-content: center; | |
height: 100vh; | |
} |
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
{ | |
"manifest_version": 2, | |
"name": "Chrome newtab exemple", | |
"version": "1.0.0", | |
"description": "Demonstrate what is needed to make a newtab chrome extension.", | |
"chrome_url_overrides" : { | |
"newtab": "newtab.html" | |
} | |
} |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>New tab</title> | |
<meta charset="utf-8"> | |
<link rel="stylesheet" href="main.css"> | |
</head> | |
<body> | |
<div class="my-newtab"> | |
Custom newtab ! | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you don't know how to load this basic exemple into chrome, check the associated blog article :
https://wimantis.ninja/how-to-make-a-newtab-chrome-extension/ 🙂