Dateien hochladen nach „“

This commit is contained in:
M_Viper 2023-11-01 16:07:54 +01:00
parent 369a1ca31b
commit 3511eb66ef
5 changed files with 22 additions and 0 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

1
index.html Normal file
View File

@ -0,0 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no"><title>New Tab</title><link rel="icon" type="image/svg+xml" class="favicon" href="icon/favicon.svg"/><style media="screen">html,body {background-color: rgb(0, 0, 0);}@media (prefers-color-scheme: dark) {html,body {background-color: rgb(0, 0, 0);}}@media (prefers-color-scheme: light) {html,body {background-color: rgb(255, 255, 255);}}</style><script src="initialBackground.js" async></script><script defer="defer" src="index.09153abdbaa791fa4f0e.js"></script><link href="index.41b2d2a8cee846b032b5.css" rel="stylesheet"></head><body></body></html>

1
initialBackground.js Normal file
View File

@ -0,0 +1 @@
if(localStorage.getItem("nightTabStyle")){const e=document.createElement("style");switch(e.type="text/css",e.media="screen",localStorage.getItem("nightTabStyle")){case"light":e.innerHTML="html, body {background-color: rgb(255, 255, 255);}";break;case"dark":e.innerHTML="html, body {background-color: rgb(0, 0, 0);}"}document.querySelector("head").appendChild(e)}

18
manifest.json Normal file
View File

@ -0,0 +1,18 @@
{
"update_url": "https://clients2.google.com/service/update2/crx",
"name": "nightTab",
"short_name": "nightTab",
"description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.",
"version": "7.3.0",
"manifest_version": 2,
"chrome_url_overrides": {
"newtab": "index.html"
},
"icons": {
"16": "icon/icon-16.png",
"48": "icon/icon-48.png",
"128": "icon/icon-128.png",
"512": "icon/icon-512.png"
}
}