Skip to content

Commit

Permalink
Update notification: change YT thumbnail to image (#5785)
Browse files Browse the repository at this point in the history
  • Loading branch information
WorldLanguages committed Mar 9, 2023
1 parent 38d92ba commit 05c7b33
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions content-scripts/cs.js
Expand Up @@ -610,16 +610,19 @@ const showBanner = () => {
box-shadow: 0 0 20px 0px #0000009e;
line-height: 1em;`,
});
/*
const notifImageLink = Object.assign(document.createElement("a"), {
href: "https://www.youtube.com/watch?v=oRo0tMWEpiA",
target: "_blank",
rel: "noopener",
referrerPolicy: "strict-origin-when-cross-origin",
});
// Thumbnails were 100px height
*/
const notifImage = Object.assign(document.createElement("img"), {
// alt: chrome.i18n.getMessage("hexColorPickerAlt"),
src: chrome.runtime.getURL("/images/cs/yt-thumbnail.jpg"),
style: "height: 100px; border-radius: 5px; padding: 20px",
src: chrome.runtime.getURL("/images/cs/icon.png"),
style: "height: 150px; border-radius: 5px; padding: 20px",
});
const notifText = Object.assign(document.createElement("div"), {
id: "sa-notification-text",
Expand Down Expand Up @@ -717,9 +720,9 @@ const showBanner = () => {
notifText.appendChild(makeBr());
notifText.appendChild(notifFooter);

notifImageLink.appendChild(notifImage);
// notifImageLink.appendChild(notifImage);

notifInnerBody.appendChild(notifImageLink);
notifInnerBody.appendChild(notifImage);
notifInnerBody.appendChild(notifText);

notifOuterBody.appendChild(notifInnerBody);
Expand Down
Binary file added images/cs/icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed images/cs/yt-thumbnail.jpg
Binary file not shown.

0 comments on commit 05c7b33

Please sign in to comment.