feat: anti copyright thingy

This commit is contained in:
nafunii 2022-01-10 11:56:13 +08:00
parent 3a640b0a3d
commit f34b77d7f3
No known key found for this signature in database
GPG key ID: 0A82862EF6000AE3
3 changed files with 5 additions and 7 deletions

View file

@ -9,13 +9,13 @@
"24": "images/icon24.png",
"32": "images/icon32.png"
},
"default_title": "Github Accentify",
"default_title": "Gitccentify",
"default_popup": "popup.html"
},
"description": "Personalize your Github Experience",
"description": "Personalize your Github Experience by theming it to your own style.",
"author": {
"name": "Jariel Que",

View file

@ -14,7 +14,7 @@
<!-- My Styles -->
<link rel="stylesheet" href="styles/styles.css">
<title>GitHub Accentify</title>
<title>Gitccentify</title>
</head>
<body>
@ -22,7 +22,7 @@
<div class="inb"><img class="logo" src="images/icon32.png" alt="Github Accentify"></img>
</div>
<div class="inb">
<h1 class="logo-text"> Github Accentify </h1>
<h1 class="logo-text"> Gitccentify </h1>
</div>
</div>
<div>

View file

@ -8,9 +8,7 @@ changeColor.addEventListener("change", async() => {
let [tab] = await chrome.tabs.query({ active: true, currentWindow: true });
var accent1 = changeColor.value;
chrome.storage.sync.set({ a1: accent1 }, () => {
alert("Color set to " + accent1);
});
chrome.storage.sync.set({ a1: accent1 });
chrome.scripting.executeScript({
target: { tabId: tab.id },