diff --git a/data/FilterList.json b/data/FilterList.json index ffdd74b22..3e1d3a910 100644 --- a/data/FilterList.json +++ b/data/FilterList.json @@ -13664,7 +13664,8 @@ "syntaxId": 3, "updatedDate": "2019-03-27T21:25:33+00:00", "viewUrl": "https://gitlab.com/intr0/DomainVoider/raw/master/DomainVoider.txt", - "viewUrlMirror1": "https://notabug.org/-intr0/DomainVoider/raw/master/DomainVoider.txt" + "viewUrlMirror1": "https://notabug.org/-intr0/DomainVoider/raw/master/DomainVoider.txt", + "viewUrlMirror2": "http://vivmyccb3jdb7yij.onion/intr0/DomainVoider/raw/master/DomainVoider.txt" }, { "id": 1297, diff --git a/src/FilterLists.Web/ClientApp/modules/home/components/linkButtons/SubscribeButton.tsx b/src/FilterLists.Web/ClientApp/modules/home/components/linkButtons/SubscribeButton.tsx index 515946b9f..3c741fe9f 100644 --- a/src/FilterLists.Web/ClientApp/modules/home/components/linkButtons/SubscribeButton.tsx +++ b/src/FilterLists.Web/ClientApp/modules/home/components/linkButtons/SubscribeButton.tsx @@ -10,20 +10,33 @@ interface IProps { export const SubscribeButton = (props: IProps) => { let buttonClass: string | undefined; let titlePrefix: string; - - if (props.url.indexOf("https://") === -1) { + + if (props.url.indexOf(".onion/") > 0) { + buttonClass = "btn-success"; + titlePrefix = "Tor address - "; + } else if (props.url.indexOf("http://") === 0) { buttonClass = "btn-danger"; titlePrefix = "Not Secure - "; } else { buttonClass = undefined; titlePrefix = ""; } - + const hrefTitle = `&title=${encodeURIComponent(props.name)}`; - const href = `abp:subscribe?location=${encodeURIComponent(props.url)}${hrefTitle}`; - const title = - `${titlePrefix}Subscribe to ${props.name - } with a browser extension supporting the \"abp:\" protocol (e.g. uBlock Origin, Adblock Plus).`; + let href; +if (props.url.indexOf(".tpl") > 0) +{ + href = `https://raw.githubusercontent.com/collinbarrett/FilterLists/master/data/TPLSubscriptionAssistant.html`; +} else { + href = `abp:subscribe?location=${encodeURIComponent(props.url)}${hrefTitle}`; +}; + let title; +if (props.url.indexOf(".tpl") > 0) +{ + title = `${titlePrefix}Visit a TPL archive from which ${props.name} can be subscribed to with Internet Explorer.`; +} else { + title = `${titlePrefix}Subscribe to ${props.name} with a browser extension supporting the \"abp:\" protocol (e.g. uBlock Origin, Adblock Plus).`; +}; return props.url ? { buttonClass={buttonClass} text={props.text || "Subscribe"}/> : null; -}; \ No newline at end of file +};