diff --git a/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/infoCard/UpdatedDate.tsx b/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/infoCard/UpdatedDate.tsx
index fc5636d2c..9eef5cb64 100644
--- a/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/infoCard/UpdatedDate.tsx
+++ b/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/infoCard/UpdatedDate.tsx
@@ -1,5 +1,4 @@
import * as React from "react";
-import * as moment from "moment";
interface IProps {
updatedDate: string;
@@ -8,8 +7,8 @@ interface IProps {
export const UpdatedDate = (props: IProps) =>
props.updatedDate
?
- Updated: {moment(props.updatedDate).isValid()
- ? moment(props.updatedDate).format("l")
+
Updated: (props.updatedDate).isValid()
+ ? (props.updatedDate)Intl.DateTimeFormat().format(date)
: "N/A"}
- : null;
\ No newline at end of file
+ : null;
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 3c741fe9f..6374fd697 100644
--- a/src/FilterLists.Web/ClientApp/modules/home/components/linkButtons/SubscribeButton.tsx
+++ b/src/FilterLists.Web/ClientApp/modules/home/components/linkButtons/SubscribeButton.tsx
@@ -26,14 +26,20 @@ export const SubscribeButton = (props: IProps) => {
let href;
if (props.url.indexOf(".tpl") > 0)
{
- href = `https://raw.githubusercontent.com/collinbarrett/FilterLists/master/data/TPLSubscriptionAssistant.html`;
+ href = `javascript:window.external.msAddTrackingProtectionList('${encodeURIComponent(props.url)}', '${hrefTitle}')`;
+} else if (props.url.indexOf(".lsrules") > 0)
+{
+ href = `x-littlesnitch:subscribe-rules?url=${encodeURIComponent(props.url)}`;
} 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.`;
+ title = `${titlePrefix}Subscribe to ${props.name} with Internet Explorer's Tracking Protection List feature.`;
+} else if (props.url.indexOf(".lsrules") > 0)
+{
+ title = `${titlePrefix}Subscribe to ${props.name} with Little Snitch's rule group subscription feature.`;
} else {
title = `${titlePrefix}Subscribe to ${props.name} with a browser extension supporting the \"abp:\" protocol (e.g. uBlock Origin, Adblock Plus).`;
};
diff --git a/src/FilterLists.Web/ClientApp/modules/home/components/linkButtons/ViewButton.tsx b/src/FilterLists.Web/ClientApp/modules/home/components/linkButtons/ViewButton.tsx
index eb537c752..0e33dab9b 100644
--- a/src/FilterLists.Web/ClientApp/modules/home/components/linkButtons/ViewButton.tsx
+++ b/src/FilterLists.Web/ClientApp/modules/home/components/linkButtons/ViewButton.tsx
@@ -7,9 +7,18 @@ interface IProps {
text?: string;
};
-export const ViewButton = (props: IProps) =>
- props.url
+export const ViewButton = (props: IProps) => {
+
+ let title;
+ if (props.url.indexOf(".onion/") > 0) { title = `Tor address - View ${props.name} in its raw format.`; }
+ else if (props.url.indexOf(".zip") > 0) { title = `Download ${props.name} as a ZIP compressed archive.`; }
+ else if (props.url.indexOf(".7z") > 0) { title = `Download ${props.name} as a 7Z compressed archive.`; }
+ else if (props.url.indexOf(".tar.gz") > 0) { title = `Download ${props.name} as a compressed tarball archive.`; }
+ else { title = `View ${props.name} in its raw format`; };
+
+return props.url
?
- : null;
\ No newline at end of file
+ : null;
+}
diff --git a/src/FilterLists.Web/ClientApp/site.css b/src/FilterLists.Web/ClientApp/site.css
index c25b79089..87aa8c31c 100644
--- a/src/FilterLists.Web/ClientApp/site.css
+++ b/src/FilterLists.Web/ClientApp/site.css
@@ -1 +1,2 @@
-body, h2, h3, h4, h5, blockquote { font-size: 16px; }
\ No newline at end of file
+body, h2, h3, h4, h5, blockquote { font-size: 16px; }
+.container{ max-width:98vw!important;padding-left:7px!important }
diff --git a/src/FilterLists.Web/Views/Shared/_Layout.cshtml b/src/FilterLists.Web/Views/Shared/_Layout.cshtml
index 8c1c525cf..0d0421455 100644
--- a/src/FilterLists.Web/Views/Shared/_Layout.cshtml
+++ b/src/FilterLists.Web/Views/Shared/_Layout.cshtml
@@ -16,9 +16,10 @@
@RenderBody()
+
@RenderSection("scripts", false)
-