diff options
author | ManeraKai <manerakai@protonmail.com> | 2022-03-10 19:41:00 +0300 |
---|---|---|
committer | ManeraKai <manerakai@protonmail.com> | 2022-03-10 19:41:00 +0300 |
commit | 57d3517b757c38f0a580efb6e01f48ede724119f (patch) | |
tree | e295ce56b7c0223a253bf09f576b37c20451d951 /src | |
parent | removed hompage from manifest as it's changing the default home page #101 (diff) | |
download | libredirect-57d3517b757c38f0a580efb6e01f48ede724119f.zip |
Added links on icons in the popup #103
Diffstat (limited to 'src')
-rw-r--r-- | src/assets/javascripts/helpers/sendTargets.js | 3 | ||||
-rw-r--r-- | src/assets/javascripts/helpers/wikipedia.js | 2 | ||||
-rw-r--r-- | src/assets/javascripts/helpers/youtube/youtube.js | 2 | ||||
-rw-r--r-- | src/pages/popup/popup.html | 57 | ||||
-rw-r--r-- | src/pages/stylesheets/styles.css | 4 |
5 files changed, 33 insertions, 35 deletions
diff --git a/src/assets/javascripts/helpers/sendTargets.js b/src/assets/javascripts/helpers/sendTargets.js index f5690d52..66b39b78 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 fbe65748..a2e9cab3 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 760cb675..0eed1ceb 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 7abf682e..a024d519 100644 --- a/src/pages/popup/popup.html +++ b/src/pages/popup/popup.html @@ -10,83 +10,83 @@ <body> <div id="youtube" class="some-block"> - <div class="title"> + <a class="title" href="https://youtube.com"> <img src="../../assets/images/youtube-icon.png" /> <h4>YouTube</h4> - </div> + </a> <input id="disable-youtube" type="checkbox" checked /> </div> <div id="youtubeMusic" class="some-block"> - <div class="title"> + <a class="title" href="https://music.youtube.com"> <img src="../../assets/images/youtube-music-icon.png" /> <h4>YT Music</h4> - </div> + </a> <input id="disable-youtubeMusic" type="checkbox" checked /> </div> <div id="twitter" class="some-block"> - <div class="title"> + <a class="title" href="https://twitter.com"> <img src="../../assets/images/twitter-icon.png" /> <h4>Twitter</h4> - </div> + </a> <input id="disable-nitter" type="checkbox" checked /> </div> <div id="instagram" class="some-block"> - <div class="title"> + <a class="title" href="https://instagram.com"> <!-- https://www.iconfinder.com/Indygo --> <img src="../../assets/images/instagram-icon.png" /> <h4>Instagram</h4> - </div> + </a> <input id="disable-bibliogram" type="checkbox" checked /> </div> <div id="tikTok" class="some-block"> - <div class="title"> + <a class="title" href="https://tiktok.com"> <!-- https://www.flaticon.com/authors/designer-shah --> <img src="../../assets/images/tiktok-icon.png" /> <h4>TikTok</h4> - </div> + </a> <input id="disable-tiktok" type="checkbox" checked /> </div> <div id="imgur" class="some-block"> - <div class="title"> + <a class="title" href="https://imgur.com"> <img src="../../assets/images/imgur-icon.png" /> <h4>Imgur</h4> - </div> + </a> <input id="disable-imgur" type="checkbox" checked /> </div> <div id="reddit" class="some-block"> - <div class="title"> + <a class="title" href="https://reddit.com"> <!-- https://www.flaticon.com/authors/md-tanvirul-haque --> <img src="../../assets/images/reddit-icon.png" /> <h4>Reddit</h4> - </div> + </a> <input id="disable-reddit" type="checkbox" checked /> </div> <div id="pixiv" class="some-block"> - <div class="title"> + <a class="title" href="https://pixiv.net"> <!-- https://clipground.com/pics/getsecond?url=pixiv-logo-2.png --> <img src="../../assets/images/pixiv-icon.svg" /> <h4>Pixiv</h4> - </div> + </a> <input id="disable-pixiv" type="checkbox" checked /> </div> <div id="wikipedia" class="some-block"> - <div class="title"> + <a class="title" href="https://wikipedia.org"> <img src="../../../assets/images/wikipedia-icon.svg" /> <h4>Wikipedia</h4> - </div> + </a> <input id="disable-wikipedia" type="checkbox" checked /> </div> <div id="medium" class="some-block"> - <div class="title"> + <a class="title" href="https://medium.com"> <!-- https://markentier.tech/posts/2020/10/medium-icon-svg/ --> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1770 1000" fill="currentColor"> <circle cx="500" cy="500" r="500" /> @@ -94,54 +94,53 @@ <ellipse cx="1682" cy="502" rx="88" ry="424" /> </svg> <h4>Medium</h4> - </div> + </a> <input id="disable-medium" type="checkbox" checked /> </div> <div id="search" class="some-block"> - <div class="title"> + <a class="title" href="http://libredirect.onion"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"> <path d="M0 0h24v24H0V0z" fill="none" /> <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" /> </svg> <h4>Search</h4> - </div> + </a> <input id="disable-search" type="checkbox" checked /> </div> <div id="translate" class="some-block"> - <div class="title"> + <a class="title" href="https://translate.google.com"> <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor"> - <path d="M0 0h24v24H0V0z" fill="none" /> <path d="M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z" /> </svg> <h4>Translate</h4> - </div> + </a> <input id="disable-simplyTranslate" type="checkbox" checked /> </div> <div id="maps" class="some-block"> - <div class="title"> + <a class="title" href="https://maps.google.com"> <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor"> <path d="M0 0h24v24H0V0z" fill="none" /> <path d="M20.5 3l-.16.03L15 5.1 9 3 3.36 4.9c-.21.07-.36.25-.36.48V20.5c0 .28.22.5.5.5l.16-.03L9 18.9l6 2.1 5.64-1.9c.21-.07.36-.25.36-.48V3.5c0-.28-.22-.5-.5-.5zM10 5.47l4 1.4v11.66l-4-1.4V5.47zm-5 .99l3-1.01v11.7l-3 1.16V6.46zm14 11.08l-3 1.01V6.86l3-1.16v11.84z" /> </svg> <h4>Maps</h4> - </div> + </a> <input id="disable-osm" type="checkbox" checked /> </div> <div id="sendTargets" class="some-block"> - <div class="title"> + <a class="title" href="http://send.onion"> <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor"> <path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z" /> </svg> <h4>Send Files</h4> - </div> + </a> <input id="disable-sendTargets" type="checkbox" checked /> </div> diff --git a/src/pages/stylesheets/styles.css b/src/pages/stylesheets/styles.css index 37cff60a..277ef2e4 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 { |