mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
parent
d338a21312
commit
8747f83408
2 changed files with 6 additions and 8 deletions
|
|
@ -199,7 +199,6 @@ interface IListTagDto {
|
|||
}
|
||||
|
||||
function SubscribeUrl(props: any) {
|
||||
const titleBase = "Subscribe to list with browser extension supporting \"abp:\" protocol (e.g. uBlock Origin, AdBlock Plus).";
|
||||
return props.url.indexOf("https://") === -1
|
||||
? SubscribeUrlNotSecure()
|
||||
: props.url.indexOf("web.archive.org") === -1
|
||||
|
|
@ -209,7 +208,7 @@ function SubscribeUrl(props: any) {
|
|||
function SubscribeUrlPrimary() {
|
||||
return <a href={`abp:subscribe?location=${encodeURIComponent(props.url)}&title=${encodeURIComponent(props.name)}`}
|
||||
className="btn btn-primary btn-block"
|
||||
title={titleBase}>
|
||||
title={`Subscribe to list with browser extension supporting \"abp:\" protocol (e.g. uBlock Origin, AdBlock Plus).`}>
|
||||
Subscribe
|
||||
</a>;
|
||||
}
|
||||
|
|
@ -217,7 +216,7 @@ function SubscribeUrl(props: any) {
|
|||
function SubscribeUrlWayback() {
|
||||
return <a href={`abp:subscribe?location=${encodeURIComponent(props.url)}&title=${encodeURIComponent(props.name)}`}
|
||||
className="btn btn-secondary btn-block"
|
||||
title={`Archive.org Mirror (Original Offline) - ${{ titleBase }}`}>
|
||||
title={`Archive.org Mirror (Original Offline) - Subscribe to list with browser extension supporting \"abp:\" protocol (e.g. uBlock Origin, AdBlock Plus).`}>
|
||||
Subscribe
|
||||
</a>;
|
||||
}
|
||||
|
|
@ -225,7 +224,7 @@ function SubscribeUrl(props: any) {
|
|||
function SubscribeUrlNotSecure() {
|
||||
return <a href={`abp:subscribe?location=${encodeURIComponent(props.url)}&title=${encodeURIComponent(props.name)}`}
|
||||
className="btn btn-warning btn-block"
|
||||
title={`Not Secure - ${{ titleBase }}` }>
|
||||
title={`Not Secure - Subscribe to list with browser extension supporting \"abp:\" protocol (e.g. uBlock Origin, AdBlock Plus).`}>
|
||||
Subscribe
|
||||
</a>;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -168,7 +168,6 @@ function License(props: any) {
|
|||
}
|
||||
|
||||
function SubscribeUrl(props: any) {
|
||||
const titleBase = "Subscribe to list with browser extension supporting \"abp:\" protocol (e.g. uBlock Origin, AdBlock Plus).";
|
||||
return props.url.indexOf("https://") === -1
|
||||
? SubscribeUrlNotSecure()
|
||||
: props.url.indexOf("web.archive.org") === -1
|
||||
|
|
@ -178,7 +177,7 @@ function SubscribeUrl(props: any) {
|
|||
function SubscribeUrlPrimary() {
|
||||
return <a href={`abp:subscribe?location=${encodeURIComponent(props.url)}&title=${encodeURIComponent(props.name)}`}
|
||||
className="d-block d-sm-none btn btn-primary btn-block fl-btn-details-action"
|
||||
title={titleBase}>
|
||||
title={`Subscribe to list with browser extension supporting \"abp:\" protocol (e.g. uBlock Origin, AdBlock Plus).`}>
|
||||
Subscribe
|
||||
</a>;
|
||||
}
|
||||
|
|
@ -186,7 +185,7 @@ function SubscribeUrl(props: any) {
|
|||
function SubscribeUrlWayback() {
|
||||
return <a href={`abp:subscribe?location=${encodeURIComponent(props.url)}&title=${encodeURIComponent(props.name)}`}
|
||||
className="d-block d-sm-none btn btn-secondary btn-block fl-btn-details-action"
|
||||
title={`Archive.org Mirror (Original Offline) - ${{ titleBase }}`}>
|
||||
title={`Archive.org Mirror (Original Offline) - Subscribe to list with browser extension supporting \"abp:\" protocol (e.g. uBlock Origin, AdBlock Plus).`}>
|
||||
Subscribe
|
||||
</a>;
|
||||
}
|
||||
|
|
@ -194,7 +193,7 @@ function SubscribeUrl(props: any) {
|
|||
function SubscribeUrlNotSecure() {
|
||||
return <a href={`abp:subscribe?location=${encodeURIComponent(props.url)}&title=${encodeURIComponent(props.name)}`}
|
||||
className="d-block d-sm-none btn btn-warning btn-block fl-btn-details-action"
|
||||
title={`Not Secure - ${{ titleBase }}`}>
|
||||
title={`Not Secure - Subscribe to list with browser extension supporting \"abp:\" protocol (e.g. uBlock Origin, AdBlock Plus).`}>
|
||||
Subscribe
|
||||
</a>;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue