diff --git a/ext/images/alttcslogo_white.png b/ext/images/alttcslogo_white.png new file mode 100644 index 0000000..c21f525 Binary files /dev/null and b/ext/images/alttcslogo_white.png differ diff --git a/ext/images/shitori_banner.png b/ext/images/shitori_banner.png new file mode 100644 index 0000000..7960ca3 Binary files /dev/null and b/ext/images/shitori_banner.png differ diff --git a/ext/images/suspicious_satori_banner.png b/ext/images/suspicious_satori_banner.png new file mode 100644 index 0000000..826ea07 Binary files /dev/null and b/ext/images/suspicious_satori_banner.png differ diff --git a/ext/images/suspicious_shitori_banner.png b/ext/images/suspicious_shitori_banner.png new file mode 100644 index 0000000..0544f40 Binary files /dev/null and b/ext/images/suspicious_shitori_banner.png differ diff --git a/ext/images/tcslogo_white.svg b/ext/images/tcslogo_white.svg new file mode 100644 index 0000000..deecac9 --- /dev/null +++ b/ext/images/tcslogo_white.svg @@ -0,0 +1,109 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ext/images_src/alttcs_white.xcf b/ext/images_src/alttcs_white.xcf new file mode 100644 index 0000000..2a0c1cc Binary files /dev/null and b/ext/images_src/alttcs_white.xcf differ diff --git a/ext/images_src/shitori_banner.xcf b/ext/images_src/shitori_banner.xcf new file mode 100644 index 0000000..03ca3af Binary files /dev/null and b/ext/images_src/shitori_banner.xcf differ diff --git a/ext/images_src/suspicious_satori_banner.xcf b/ext/images_src/suspicious_satori_banner.xcf new file mode 100644 index 0000000..33d9e9f Binary files /dev/null and b/ext/images_src/suspicious_satori_banner.xcf differ diff --git a/ext/images_src/suspicious_shitori_banner.xcf b/ext/images_src/suspicious_shitori_banner.xcf new file mode 100644 index 0000000..884d58a Binary files /dev/null and b/ext/images_src/suspicious_shitori_banner.xcf differ diff --git a/ext/js/general.js b/ext/js/general.js index 0738ccc..4a6a95b 100644 --- a/ext/js/general.js +++ b/ext/js/general.js @@ -4,8 +4,13 @@ browser.runtime.sendMessage({action: 'enablePageAction'}); const BANNER_URL = browser.extension.getURL('images/satori_banner.png'); + const SHITORI_BANNER_URL = browser.extension.getURL('images/shitori_banner.png'); + const SUSPICIOUS_SATORI_BANNER_URL = browser.extension.getURL('images/suspicious_satori_banner.png'); + const SUSPICIOUS_SHITORI_BANNER_URL = browser.extension.getURL('images/suspicious_shitori_banner.png'); const TCS_LOGO_URL = browser.extension.getURL('images/tcslogo.svg'); + const TCS_LOGO_WHITE_URL = browser.extension.getURL('images/tcslogo_white.svg'); const ALT_TCS_LOGO_URL = browser.extension.getURL('images/alttcslogo.png'); + const ALT_TCS_WHITE_LOGO_URL = browser.extension.getURL('images/alttcslogo_white.png'); let storage = browser.storage.sync || browser.storage.local; @@ -14,10 +19,15 @@ storage.get({ [CHOSEN_LOGO_PRIMARY_KEY]: DEFAULT_SETTINGS[CHOSEN_LOGO_PRIMARY_KEY] }).then(response => { - let newLogoUrl = { + const newLogoUrl = { satoriPremium: BANNER_URL, + shitoriPremium: SHITORI_BANNER_URL, + suspiciousSatoriPremium: SUSPICIOUS_SATORI_BANNER_URL, + suspiciousShitoriPremium: SUSPICIOUS_SHITORI_BANNER_URL, tcs: TCS_LOGO_URL, + tcsWhite: TCS_LOGO_WHITE_URL, alternative: ALT_TCS_LOGO_URL, + alternativeWhite: ALT_TCS_WHITE_LOGO_URL, }[response[CHOSEN_LOGO_PRIMARY_KEY]]; $('img[src="/files/satori_banner.png"]').attr('src', newLogoUrl); }); @@ -40,10 +50,16 @@ if (chosenLogo === 'none') { return; } - let url = chosenLogo === 'alternative' ? - ALT_TCS_LOGO_URL : TCS_LOGO_URL; - let logo = $('').attr('src', url); - let div = $('