diff options
Diffstat (limited to 'src/pages/popup')
-rw-r--r-- | src/pages/popup/popup.html | 4 | ||||
-rw-r--r-- | src/pages/popup/popup.js | 4 | ||||
-rw-r--r-- | src/pages/popup/popup.pug | 6 |
3 files changed, 14 insertions, 0 deletions
diff --git a/src/pages/popup/popup.html b/src/pages/popup/popup.html index 5b00b084..8555dcac 100644 --- a/src/pages/popup/popup.html +++ b/src/pages/popup/popup.html @@ -48,6 +48,10 @@ <h4 data-localise="__MSG_medium__">Medium</h4></a> <input id="disable-medium" type="checkbox"> </div> + <div class="some-block" id="quora"><a class="title" href="https://quora.com"><img src="../../assets/images/quora.png"> + <h4 data-localise="__MSG_quora__">Quora</h4></a> + <input id="disable-quora" type="checkbox"> + </div> <div class="some-block" id="peertube"><a class="title" href="https://search.joinpeertube.org"><img src="../../assets/images/peertube-icon.svg"> <h4 data-localise="__MSG_peertube__">PeerTube</h4></a> <input id="disable-peertube" type="checkbox"> diff --git a/src/pages/popup/popup.js b/src/pages/popup/popup.js index 17eeb2ca..a25ca6b9 100644 --- a/src/pages/popup/popup.js +++ b/src/pages/popup/popup.js @@ -44,6 +44,7 @@ let disableSearchElement = document.getElementById("disable-search"); let disableElement = document.getElementById("disable-simplyTranslate"); let disableWikipediaElement = document.getElementById("disable-wikipedia"); let disableMediumElement = document.getElementById("disable-medium"); +let disableQuoraElement = document.getElementById("disable-quora"); let disablePeertubeElement = document.getElementById("disable-peertube"); let disableLbryElement = document.getElementById("disable-lbry"); let disableSendTargetsElement = document.getElementById("disable-sendTargets"); @@ -64,6 +65,7 @@ browser.storage.local.get( "disableImgur", "disableTiktok", "disableMedium", + "disableQuora", "disablePeertubeTargets", "disableLbryTargets", "disableSendTarget", @@ -83,6 +85,7 @@ browser.storage.local.get( disableImgurElement.checked = !r.disableImgur; disableTiktokElement.checked = !r.disableTiktok; disableMediumElement.checked = !r.disableMedium; + disableQuoraElement.checked = !r.disableQuora; disablePeertubeElement.checked = !r.disablePeertubeTargets; disableLbryElement.checked = !r.disableLbryTargets; disableSendTargetsElement.checked = !r.disableSendTarget; @@ -109,6 +112,7 @@ document.addEventListener("change", () => { disableImgur: !disableImgurElement.checked, disableTiktok: !disableTiktokElement.checked, disableMedium: !disableMediumElement.checked, + disableQuora: !disableQuoraElement.checked, disablePeertubeTargets: !disablePeertubeElement.checked, disableLbryTargets: !disableLbryElement.checked, disableSendTarget: !disableSendTargetsElement.checked, diff --git a/src/pages/popup/popup.pug b/src/pages/popup/popup.pug index a2c8de93..02d9165e 100644 --- a/src/pages/popup/popup.pug +++ b/src/pages/popup/popup.pug @@ -62,6 +62,12 @@ html(lang="en") h4(data-localise="__MSG_medium__") Medium input#disable-medium(type="checkbox") + #quora.some-block + a.title(href="https://quora.com") + img(src="../../assets/images/quora.png") + h4(data-localise="__MSG_quora__") Quora + input#disable-quora(type="checkbox") + #peertube.some-block a.title(href="https://search.joinpeertube.org") img(src="../../assets/images/peertube-icon.svg") |