Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chrome Extension:How to show background image in new Tab

I am willing to have a similar functionality like given in popular extensions like Moments or Limitless which show beautiful wallpaper.

How can I implement it? Also, if multiple similar extensions are installed who shows image on new tab, is there way to let chrome show my image in tab first?

Thanks

like image 530
Volatil3 Avatar asked Dec 05 '25 10:12

Volatil3


1 Answers

This is possible by indicating a different new tab page in the chrome_url_overrides property in the manifest.json:

{
  "name": "My extension",
  "chrome_url_overrides" : {
    "newtab": "myNewTabPage.html"
  }
}

Then you can modify the myNewTabPage.html with background image you need, attaching the necessary stylesheets and assets.

Check here more details about overrides.

If multiple similar extensions are installed The new tab override will be managed by the latest extension installed on Chrome and this behavior cannot be changed.

like image 191
Dmitri Pavlutin Avatar answered Dec 07 '25 22:12

Dmitri Pavlutin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!