From f2294d7da063e05ee81befb27173b791bccdc2c8 Mon Sep 17 00:00:00 2001 From: ManeraKai Date: Tue, 28 Jun 2022 10:31:34 +0300 Subject: fixing & refining About Page #368 --- src/pages/popup/popup.html | 13 +++++++++---- src/pages/popup/popup.js | 3 +-- src/pages/popup/popup.pug | 13 +++++++++---- 3 files changed, 19 insertions(+), 10 deletions(-) (limited to 'src/pages/popup') diff --git a/src/pages/popup/popup.html b/src/pages/popup/popup.html index 2b6c5658..4030f0ec 100644 --- a/src/pages/popup/popup.html +++ b/src/pages/popup/popup.html @@ -191,26 +191,31 @@
-
+ -
+ -
+ -
+ +
diff --git a/src/pages/popup/popup.js b/src/pages/popup/popup.js index a54c69ac..e12e61e9 100644 --- a/src/pages/popup/popup.js +++ b/src/pages/popup/popup.js @@ -51,7 +51,6 @@ utils.copyRaw(true).then(r => { copy_raw.addEventListener("click", () => utils.copyRaw(false, copy_raw)); } }) - document.getElementById("more-options").addEventListener("click", () => browser.runtime.openOptionsPage()); const allSites = document.getElementsByClassName('all_sites')[0]; @@ -323,7 +322,7 @@ document.addEventListener("change", () => { for (const a of document.getElementsByTagName('a')) { a.addEventListener('click', e => { - if (!a.classList.contains('button')) { + if (!a.classList.contains('prevent')) { browser.tabs.create({ url: a.getAttribute('href') }); e.preventDefault(); } diff --git a/src/pages/popup/popup.pug b/src/pages/popup/popup.pug index ce155e1a..13eb66a5 100644 --- a/src/pages/popup/popup.pug +++ b/src/pages/popup/popup.pug @@ -124,25 +124,30 @@ html(lang="en") +services hr #change_instance_div.some-block - a#change_instance.title.button + a#change_instance.title.button.prevent h4(data-localise="__MSG_switchInstance__") Change Instance +change_instance #copy_raw_div.some-block(title="Copy the original redirected link") - a#copy_raw.title.button + a#copy_raw.title.button.prevent h4(data-localise="__MSG_copyRaw__") Copy Raw +copy_raw #unify_div.some-block(title="Unify cookies across all selected instances") - a#unify.title.button + a#unify.title.button.prevent h4(data-localise="__MSG_unifySettings__") Unify Settings +unify .some-block - a#more-options.title.button + a#more-options.title.button.prevent h4(data-localise="__MSG_settings__") Settings +settings + .some-block + a#about.title.button(href="/pages/options/index.html#about") + h4(data-localise="__MSG_about__") About + +about + .space script(type="module" src="../options/init.js") -- cgit 1.4.1