Created
October 19, 2020 17:28
-
-
Save wmcmurray/b4bb326c1ef7319ab9c6da948669c5db to your computer and use it in GitHub Desktop.
Chrome newtab extension exemple
This file contains hidden or 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 hidden or 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 hidden or 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/ 🙂