diff --git a/background.js b/background.js index d554099..a9eaa89 100644 --- a/background.js +++ b/background.js @@ -35,7 +35,7 @@ chrome.tabs.onUpdated.addListener(function (tabId, changeInfo, tab) { // Set storage option chrome.storage.local.set({ switchStateIG: switchStateIG, selectedOptionIG: selectedOptionIG }); - if (switchStateIG) { + if (!switchStateIG) { let baseUrl; if (selectedOptionIG === 'picuki') { @@ -211,7 +211,7 @@ chrome.tabs.onUpdated.addListener(function (tabId, changeInfo, tab) { // Set storage option chrome.storage.local.set({ switchStateTT: switchStateTT, selectedOptionTT: selectedOptionTT }); - if (switchStateTT) { + if (!switchStateTT) { let baseUrlTT; if (selectedOptionTT === 'urlebird') { diff --git a/style.css b/style.css index 19b843b..b166051 100644 --- a/style.css +++ b/style.css @@ -45,22 +45,22 @@ body { content: ""; height: 16px; width: 16px; - left: 2px; + left: 38px; top: 2px; background-color: white; border-radius: 50%; } -input:checked+.slider { +input:not(:checked)+.slider { background: #ff5919; } -input:checked+.slider-tt { +input:not(:checked)+.slider-tt { background: #ff0a58; } input:checked+.slider:before { - transform: translateX(36px); + transform: translateX(-36px); } .option { @@ -100,4 +100,4 @@ input:checked+.slider:before { img { vertical-align: bottom; padding-right: 5px; -} +} \ No newline at end of file