Skip to content

๐Ÿ“‘ Declutter your home page

Notifications You must be signed in to change notification settings

juangutierrez01/chrome-custom-new-tab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

15 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Chrome extension logo chrome-custom-new-tab

Google Chrome badge Chromium badge Size <1MB badge HTML badge Dark Mode badge Light Mode badge

Replace Google's default new tab page ...

chrome://new-tab-page/
<!doctype html>
<html dir="ltr" lang="en"
    chrome-refresh-2023>
  <head>
    <meta charset="utf-8">
    <title>New Tab</title>
    <style>
      body {
        background: #3C3C3C;
        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=""></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="chrome://theme/colors.css?sets=ui,chrome">
    <link rel="stylesheet" href="shared_vars.css">
  </body>
</html>

...with a far simpler custom new tab:

<title>New Tab</title>
<link rel="icon" href="images/extension_icon.svg" type="image/svg+xml">
<style>@media(prefers-color-scheme:dark){body{background:#3c3c3c}}</style>
Before After
Default Light ModeDefault Dark Mode Custom Light ModeCustom Dark Mode

Installation

  1. Download this repository:

    git clone https://github.com/juangutierrez01/chrome-custom-new-tab/
  2. On Google Chrome, head to chrome://extensions

  3. Turn on Developer mode

  4. Click Load Unpacked

  5. Select the folder chrome-custom-new-tab that was downloaded in step 1

  6. Success! Your new tab page should now be a custom, blank page

About

๐Ÿ“‘ Declutter your home page

Topics

Resources

Stars

Watchers

Forks

Languages