jimschubert / NewTab-Redirect

NewTab Redirect! is an extension for Google Chrome which allows the user to replace the page displayed when creating a new tab.
MIT License
479 stars 88 forks source link

Data URLs #226

Open RHEF19 opened 6 months ago

RHEF19 commented 6 months ago

If it is easy to achieve this, I would like to be able to use the data scheme. about:blank does not support dark mode, so I used to use a url like the one below.

data:text/html,<title>New Tab</title><style>html { background-color: %23333333; }</style>

However, when I installed an extension, I lost control of New Tab page, so I am trying to offset this with this extension. If it can't be achieved, I will use bookmarks page etc. instead, so there is no problem. This is just a suggestion.

https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URLs