From 57d3517b757c38f0a580efb6e01f48ede724119f Mon Sep 17 00:00:00 2001 From: ManeraKai Date: Thu, 10 Mar 2022 19:41:00 +0300 Subject: [PATCH] Added links on icons in the popup #103 --- package.json | 2 +- src/assets/javascripts/helpers/sendTargets.js | 3 +- src/assets/javascripts/helpers/wikipedia.js | 2 - .../javascripts/helpers/youtube/youtube.js | 2 - src/pages/popup/popup.html | 57 +++++++++---------- src/pages/stylesheets/styles.css | 4 +- 6 files changed, 34 insertions(+), 36 deletions(-) diff --git a/package.json b/package.json index 31c64ea..2f8f9ab 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "bugs": { "url": "https://github.com/LibRedirect/LibRedirect/issues" }, - "homepage": "https://github.com/LibRedirect/LibRedirect#readme", + "homepage": "https://github.com/LibRedirect/LibRedirect", "devDependencies": { "web-ext": "^6.7.0" }, diff --git a/src/assets/javascripts/helpers/sendTargets.js b/src/assets/javascripts/helpers/sendTargets.js index f5690d5..66b39b7 100644 --- a/src/assets/javascripts/helpers/sendTargets.js +++ b/src/assets/javascripts/helpers/sendTargets.js @@ -3,7 +3,8 @@ window.browser = window.browser || window.chrome; import commonHelper from './common.js' const targets = [ - /^https?:\/\/send\.firefox\.com\/$/, + /^https?:\/\/send.onion\/$/, + /^ https ?: \/\/send\.firefox\.com\/$/, /^https?:\/\/sendfiles\.online\/$/ ]; diff --git a/src/assets/javascripts/helpers/wikipedia.js b/src/assets/javascripts/helpers/wikipedia.js index fbe6574..a2e9cab 100644 --- a/src/assets/javascripts/helpers/wikipedia.js +++ b/src/assets/javascripts/helpers/wikipedia.js @@ -98,11 +98,9 @@ function setWikilessTorCustomRedirects(val) { let theme; let applyThemeToSites; function initWikilessCookies() { - console.log("applyThemeToSites", applyThemeToSites) let themeValue; if (theme == 'light') themeValue = 'white'; if (theme == 'dark') themeValue = 'dark'; - console.log("themeValue", themeValue) if (applyThemeToSites && themeValue) { let allInstances = [...redirects.wikiless.normal, ...redirects.wikiless.tor, ...wikilessNormalCustomRedirects, ...wikilessTorCustomRedirects] let checkedInstances = [...wikilessNormalRedirectsChecks, ...wikilessNormalCustomRedirects, ...wikilessTorRedirectsChecks, ...wikilessTorCustomRedirects] diff --git a/src/assets/javascripts/helpers/youtube/youtube.js b/src/assets/javascripts/helpers/youtube/youtube.js index 760cb67..0eed1ce 100644 --- a/src/assets/javascripts/helpers/youtube/youtube.js +++ b/src/assets/javascripts/helpers/youtube/youtube.js @@ -440,8 +440,6 @@ function redirect(url, details, initiator) { } function changeInstance(url) { - console.log("changeInstance Youtube"); - let protocolHost = `${url.protocol}//${url.host}`; console.log("protocolHost", protocolHost); diff --git a/src/pages/popup/popup.html b/src/pages/popup/popup.html index 7abf682..a024d51 100644 --- a/src/pages/popup/popup.html +++ b/src/pages/popup/popup.html @@ -10,83 +10,83 @@
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
diff --git a/src/pages/stylesheets/styles.css b/src/pages/stylesheets/styles.css index 37cff60..277ef2e 100644 --- a/src/pages/stylesheets/styles.css +++ b/src/pages/stylesheets/styles.css @@ -32,9 +32,11 @@ div.some-block input[type="checkbox"] { -webkit-appearance: none; } -div.title { +.title { display: flex; align-items: center; + text-decoration: none; + color: var(--text); } img, svg {