diff options
Diffstat (limited to 'src/pages/popup')
-rw-r--r-- | src/pages/popup/popup.html | 5 | ||||
-rw-r--r-- | src/pages/popup/popup.js | 17 | ||||
-rw-r--r-- | src/pages/popup/popup.pug | 6 |
3 files changed, 18 insertions, 10 deletions
diff --git a/src/pages/popup/popup.html b/src/pages/popup/popup.html index 0cd1a4f7..b4086ffd 100644 --- a/src/pages/popup/popup.html +++ b/src/pages/popup/popup.html @@ -56,14 +56,14 @@ <h4>LBRY</h4></a> <input id="disable-lbry" type="checkbox"> </div> - <div class="some-block" id="search"><a class="title" href="https://search.com"> + <div class="some-block" id="search"><a class="title" href="https://libredirect.invalid"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"> <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"></path> </svg> <h4>Search</h4></a> <input id="disable-search" type="checkbox"> </div> - <div class="some-block" id="translate"><a class="title" href="https://translate.com"> + <div class="some-block" id="translate"><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="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"></path> </svg> @@ -107,6 +107,5 @@ <h4>Unify Settings</h4></a></div> <script type="module" src="../options/init.js"></script> <script type="module" src="./popup.js"></script> - <script src="../../assets/javascripts/localise.js"></script> </body> </html> \ No newline at end of file diff --git a/src/pages/popup/popup.js b/src/pages/popup/popup.js index 61e0ee1b..c6399aeb 100644 --- a/src/pages/popup/popup.js +++ b/src/pages/popup/popup.js @@ -110,14 +110,23 @@ function unify() { let url = new URL(currTab.url); let result = await youtubeHelper.initInvidiousCookies(url); - if (!result) result = await youtubeHelper.copyPipedLocalStorage(url, currTab.id); + if (!result) result = await youtubeHelper.initPipedLocalStorage(url, currTab.id); + if (!result) result = await youtubeHelper.initPipedMaterialLocalStorage(url, currTab.id); + if (!result) result = await twitterHelper.initNitterCookies(url); + if (!result) result = await redditHelper.initLibredditCookies(url); if (!result) result = await redditHelper.initTedditCookies(url); - if (!result) result = await redditHelper.initSearxCookies(url); - if (!result) result = await redditHelper.initSearxngCookies(url); + + if (!result) result = await searchHelper.initSearxCookies(url); + if (!result) result = await searchHelper.initSearxngCookies(url); + if (!result) result = await tiktokHelper.initProxiTokCookies(url); - if (!result) result = await tiktokHelper.initWikilessCookies(url); + + if (!result) result = await wikipediaHelper.initWikilessCookies(url); + + if (!result) result = await translateHelper.initSimplyTranslateCookies(url); + if (!result) result = await translateHelper.initLingvaLocalStorage(url); if (result) { const textElement = unifyElement.getElementsByTagName('h4')[0] diff --git a/src/pages/popup/popup.pug b/src/pages/popup/popup.pug index f2cc4635..31354a4b 100644 --- a/src/pages/popup/popup.pug +++ b/src/pages/popup/popup.pug @@ -75,13 +75,13 @@ html(lang="en") input#disable-lbry(type="checkbox") #search.some-block - a.title(href="https://search.com") + a.title(href="https://libredirect.invalid") +search h4 Search input#disable-search(type="checkbox") #translate.some-block - a.title(href="https://translate.com") + a.title(href="https://translate.google.com") +translate h4 Translate input#disable-simplyTranslate(type="checkbox") @@ -120,4 +120,4 @@ html(lang="en") script(type="module" src="../options/init.js") script(type="module" src="./popup.js") - script(src="../../assets/javascripts/localise.js") \ No newline at end of file + //- script(src="../../assets/javascripts/localise.js") \ No newline at end of file |