Skip to content

Commit

Permalink
release v0.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
waymondrang committed Sep 21, 2022
1 parent 9cf2433 commit dff4382
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 18 deletions.
Binary file added releases/dad_v0.5.2_chrome.zip
Binary file not shown.
Binary file added releases/dad_v0.5.2_firefox.zip
Binary file not shown.
Binary file added releases/dad_v0.5.2_opera.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion src/firefox/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "DocsAfterDark",
"version": "0.5.1",
"version": "0.5.2",
"description": "Modern, dark mode for Google Docs",
"author": "Raymond Wang",
"content_scripts": [
Expand Down
21 changes: 13 additions & 8 deletions src/firefox/word.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,18 +146,21 @@ function set_up() {
// Insert Button
default_style.textContent = get_default_style(raise_button);
document.body.insertBefore(default_style, document.body.lastChild);

var update_notification = document.createElement("div");
update_notification.id = "update-notification";
update_notification.style = "top: 0; left: 0; right: 0; background-color: #212121; color: #cecece; padding: 0.5em; text-align: center; z-index: 2500000000;";
update_notification.textContent = "DocsAfterDark has been updated to version " + browser.runtime.getManifest().version + ". Read update notes on ";
let update_notification;

update_notification = document.createElement("div");
update_notification.id = "bb-update-notification";
update_notification.style = "position: fixed; top: 0.5em; left: 0; right: 0; color: #cecece; padding: 0.5em; text-align: center; z-index: 2500000000;";
var update_text = document.createElement("span");
update_text.textContent = "DocsAfterDark has been updated to version " + browser.runtime.getManifest().version + ". Read update notes on ";
update_text.style = "background-color: #212121; padding: 0.5em 0.75em; border-radius: 0.5em; box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);";
var update_link = document.createElement("a");
update_link.href = "https://github.com/waymondrang/docsafterdark/releases";
update_link.target = "_blank";
update_link.textContent = "GitHub";
update_link.style = "color: #cecece; text-decoration: underline;";
update_notification.appendChild(update_link);
update_notification.appendChild(document.createTextNode("."));
update_text.appendChild(update_link);
update_text.appendChild(document.createTextNode("."));
var close_button = document.createElement("button");
close_button.textContent = "Close";
close_button.style = "background-color: #4d4d4d; border-radius: 2px; color: #64b5f6; border: none; cursor: pointer; margin-left: 1em;";
Expand All @@ -172,7 +175,9 @@ function set_up() {
browser.storage.local.set({ "updates": [version] });
}
}
update_notification.appendChild(close_button);
update_text.appendChild(close_button);
update_notification.appendChild(update_text);


// User must be on page for 10 seconds or manually close notification
if (Object.keys(data).includes("updates")) {
Expand Down
2 changes: 1 addition & 1 deletion src/opera/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "DocsAfterDark",
"version": "0.5.1",
"version": "0.5.2",
"description": "Modern, dark mode for Google Docs",
"author": "Raymond Wang",
"content_scripts": [
Expand Down
21 changes: 13 additions & 8 deletions src/opera/word.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,18 +146,21 @@ function set_up() {
// Insert Button
default_style.textContent = get_default_style(raise_button);
document.body.insertBefore(default_style, document.body.lastChild);

var update_notification = document.createElement("div");
update_notification.id = "update-notification";
update_notification.style = "top: 0; left: 0; right: 0; background-color: #212121; color: #cecece; padding: 0.5em; text-align: center; z-index: 2500000000;";
update_notification.textContent = "DocsAfterDark has been updated to version " + chrome.runtime.getManifest().version + ". Read update notes on ";
let update_notification;

update_notification = document.createElement("div");
update_notification.id = "bb-update-notification";
update_notification.style = "position: fixed; top: 0.5em; left: 0; right: 0; color: #cecece; padding: 0.5em; text-align: center; z-index: 2500000000;";
var update_text = document.createElement("span");
update_text.textContent = "DocsAfterDark has been updated to version " + chrome.runtime.getManifest().version + ". Read update notes on ";
update_text.style = "background-color: #212121; padding: 0.5em 0.75em; border-radius: 0.5em; box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);";
var update_link = document.createElement("a");
update_link.href = "https://github.com/waymondrang/docsafterdark/releases";
update_link.target = "_blank";
update_link.textContent = "GitHub";
update_link.style = "color: #cecece; text-decoration: underline;";
update_notification.appendChild(update_link);
update_notification.appendChild(document.createTextNode("."));
update_text.appendChild(update_link);
update_text.appendChild(document.createTextNode("."));
var close_button = document.createElement("button");
close_button.textContent = "Close";
close_button.style = "background-color: #4d4d4d; border-radius: 2px; color: #64b5f6; border: none; cursor: pointer; margin-left: 1em;";
Expand All @@ -172,7 +175,9 @@ function set_up() {
chrome.storage.local.set({ "updates": [version] });
}
}
update_notification.appendChild(close_button);
update_text.appendChild(close_button);
update_notification.appendChild(update_text);


// User must be on page for 10 seconds or manually close notification
if (Object.keys(data).includes("updates")) {
Expand Down

0 comments on commit dff4382

Please sign in to comment.