diff --git a/src/components/modals/main/settings/sections/QuickLinks.jsx b/src/components/modals/main/settings/sections/QuickLinks.jsx index 444604f7..d1c93233 100644 --- a/src/components/modals/main/settings/sections/QuickLinks.jsx +++ b/src/components/modals/main/settings/sections/QuickLinks.jsx @@ -8,6 +8,7 @@ export default function QuickLinks() { <>

{language.title}

+ diff --git a/src/components/widgets/quicklinks/QuickLinks.jsx b/src/components/widgets/quicklinks/QuickLinks.jsx index aa5b7374..84c39c93 100644 --- a/src/components/widgets/quicklinks/QuickLinks.jsx +++ b/src/components/widgets/quicklinks/QuickLinks.jsx @@ -107,7 +107,7 @@ export default class QuickLinks extends React.PureComponent { // allows you to add a link by pressing enter document.querySelector('.topbarquicklinks').onkeydown = (e) => { e = e || window.event; - let code = e.which || e.keyCode; + const code = e.which || e.keyCode; if (code === 13 && this.state.showAddLink === 'visible') { this.addLink(); e.preventDefault(); @@ -125,9 +125,12 @@ export default class QuickLinks extends React.PureComponent { const tooltipEnabled = localStorage.getItem('quicklinkstooltip'); const quickLink = (item) => { + const useProxy = (localStorage.getItem('quicklinksddgProxy') !== 'false'); + const url = useProxy ? 'https://icons.duckduckgo.com/ip2/' : 'https://www.google.com/s2/favicons?sz=32&domain='; + const link = ( this.deleteLink(item.key, e)} href={item.url} target={target} rel={rel} draggable={false}> - {item.name} + {item.name} ); diff --git a/src/modules/default_settings.json b/src/modules/default_settings.json index b35a10a0..be056c48 100644 --- a/src/modules/default_settings.json +++ b/src/modules/default_settings.json @@ -226,5 +226,9 @@ { "name": "photoInformation", "value": true + }, + { + "name": "quicklinksddgProxy", + "value": true } ]