Add thumbnail to chrome new tab page

A great idea!

To add a thumbnail to the Chrome new tab page, you can use a combination of CSS and HTML. Here's a step-by-step guide:

Step 1: Create a new file

Create a new file called newtab.css in the following directory:

C:\Users\<YourUsername>\AppData\Local\Google\Chrome\User Data\Default\Extensions\

Replace <YourUsername> with your actual Windows username.

Step 2: Add CSS code

In the newtab.css file, add the following code:

.newtab-thumbnail {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 150px;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.newtab-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

This code styles a thumbnail container and an image inside it.

Step 3: Create a new HTML file

Create a new file called newtab.html in the same directory as the newtab.css file.

Step 4: Add HTML code

In the newtab.html file, add the following code:

<!DOCTYPE html>
<html>
  <head>
    <link rel="stylesheet" type="text/css" href="newtab.css">
  </head>
  <body>
    <div class="newtab-thumbnail">
      <img src="https://example.com/thumbnail.jpg" alt="Thumbnail">
    </div>
  </body>
</html>

Replace https://example.com/thumbnail.jpg with the URL of the thumbnail image you want to display.

Step 5: Load the extension

Go to the Chrome extensions page by typing chrome://extensions/ in the address bar. Enable Developer mode and click "Load unpacked". Then, select the directory that contains the newtab.css and newtab.html files.

Step 6: Configure the new tab page

Go to the Chrome settings page by clicking the three vertical dots in the top right corner of the browser window. Click "Settings" and then scroll down to the "On startup" section. Select "Open a specific page or set of pages" and enter chrome-extension://<extension_id>/newtab.html as the URL. Replace <extension_id> with the actual ID of your extension, which can be found in the Chrome extensions page.

Step 7: Enjoy your new thumbnail

Restart Chrome and open a new tab. You should see your thumbnail image displayed!

Note: This is just a basic example, and you can customize the appearance and behavior of the thumbnail to your liking. Additionally, be aware that this method requires modifying the Chrome extension directory, which may not be suitable for all users.