Add AdCrunch for Adblock Plus filter list with complete metadata

Co-authored-by: collinbarrett <6483057+collinbarrett@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-07-29 01:52:00 +00:00 committed by Collin Barrett
parent b41225259d
commit d385d690d2
9 changed files with 88260 additions and 0 deletions

View file

@ -0,0 +1,89 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
#pragma warning disable CA1814 // Prefer jagged arrays over multidimensional
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
{
/// <inheritdoc />
public partial class AddAdCrunchFilterList : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.InsertData(
table: "FilterList",
columns: new[] { "Id", "ChatUrl", "Description", "DonateUrl", "EmailAddress", "ForumUrl", "HomeUrl", "IssuesUrl", "LicenseId", "Name", "OnionUrl", "PolicyUrl", "SubmissionUrl" },
values: new object[] { 2738, null, "AdCrunch's filter lists for different content blockers - anti-anti-adblock filters for Adblock Plus and AdBlock", null, null, null, "https://github.com/AdCrunchSoftware/Filters", "https://github.com/AdCrunchSoftware/Filters/issues", 4, "AdCrunch for Adblock Plus", null, null, null });
migrationBuilder.InsertData(
table: "Maintainer",
columns: new[] { "Id", "EmailAddress", "Name", "TwitterHandle", "Url" },
values: new object[] { 200, null, "AdCrunchSoftware", null, "https://github.com/AdCrunchSoftware" });
migrationBuilder.InsertData(
table: "FilterListMaintainer",
columns: new[] { "FilterListId", "MaintainerId" },
values: new object[] { 2738, 200 });
migrationBuilder.InsertData(
table: "FilterListSyntax",
columns: new[] { "FilterListId", "SyntaxId" },
values: new object[] { 2738, (short)3 });
migrationBuilder.InsertData(
table: "FilterListTag",
columns: new[] { "FilterListId", "TagId" },
values: new object[,]
{
{ 2738, 2 },
{ 2738, 5 }
});
migrationBuilder.InsertData(
table: "FilterListViewUrl",
columns: new[] { "FilterListId", "Id", "Primariness", "Url" },
values: new object[] { 2738, 3070, (short)1, "https://raw.githubusercontent.com/AdCrunchSoftware/Filters/refs/heads/main/AdCrunchforABP.txt" });
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DeleteData(
table: "FilterListMaintainer",
keyColumns: new[] { "FilterListId", "MaintainerId" },
keyValues: new object[] { 2738, 200 });
migrationBuilder.DeleteData(
table: "FilterListSyntax",
keyColumns: new[] { "FilterListId", "SyntaxId" },
keyValues: new object[] { 2738, (short)3 });
migrationBuilder.DeleteData(
table: "FilterListTag",
keyColumns: new[] { "FilterListId", "TagId" },
keyValues: new object[] { 2738, 2 });
migrationBuilder.DeleteData(
table: "FilterListTag",
keyColumns: new[] { "FilterListId", "TagId" },
keyValues: new object[] { 2738, 5 });
migrationBuilder.DeleteData(
table: "FilterListViewUrl",
keyColumns: new[] { "FilterListId", "Id" },
keyValues: new object[] { 2738, 3070 });
migrationBuilder.DeleteData(
table: "FilterList",
keyColumn: "Id",
keyValue: 2738);
migrationBuilder.DeleteData(
table: "Maintainer",
keyColumn: "Id",
keyValue: 200);
}
}
}

View file

@ -20304,6 +20304,15 @@ protected override void BuildModel(ModelBuilder modelBuilder)
IssuesUrl = "https://codeberg.org/BloqueBollore/pages/issues",
LicenseId = 43,
Name = "French far-right blocklist"
},
new
{
Id = 2738,
Description = "AdCrunch's filter lists for different content blockers - anti-anti-adblock filters for Adblock Plus and AdBlock",
HomeUrl = "https://github.com/AdCrunchSoftware/Filters",
IssuesUrl = "https://github.com/AdCrunchSoftware/Filters/issues",
LicenseId = 4,
Name = "AdCrunch for Adblock Plus"
});
});
@ -32433,6 +32442,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
{
FilterListId = 2737,
MaintainerId = 199
},
new
{
FilterListId = 2738,
MaintainerId = 200
});
});
@ -43810,6 +43824,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
{
FilterListId = 2736,
SyntaxId = (short)4
},
new
{
FilterListId = 2738,
SyntaxId = (short)3
});
});
@ -60137,6 +60156,16 @@ protected override void BuildModel(ModelBuilder modelBuilder)
{
FilterListId = 2737,
TagId = 25
},
new
{
FilterListId = 2738,
TagId = 2
},
new
{
FilterListId = 2738,
TagId = 5
});
});
@ -63015,6 +63044,12 @@ protected override void BuildModel(ModelBuilder modelBuilder)
Id = 199,
Name = "BloqueBollore",
Url = "https://codeberg.org/BloqueBollore/"
},
new
{
Id = 200,
Name = "AdCrunchSoftware",
Url = "https://github.com/AdCrunchSoftware"
});
});
@ -87846,6 +87881,14 @@ protected override void BuildModel(ModelBuilder modelBuilder)
Primariness = (short)1,
SegmentNumber = (short)0,
Url = "https://bloquebollore.codeberg.page/desarmons-bollore-et-l-extreme-droite.txt"
},
new
{
FilterListId = 2738,
Id = 3070,
Primariness = (short)1,
SegmentNumber = (short)0,
Url = "https://raw.githubusercontent.com/AdCrunchSoftware/Filters/refs/heads/main/AdCrunchforABP.txt"
});
});

View file

@ -17940,5 +17940,13 @@
"issuesUrl": "https://codeberg.org/BloqueBollore/pages/issues",
"licenseId": 43,
"name": "French far-right blocklist"
},
{
"description": "AdCrunch's filter lists for different content blockers - anti-anti-adblock filters for Adblock Plus and AdBlock",
"homeUrl": "https://github.com/AdCrunchSoftware/Filters",
"id": 2738,
"issuesUrl": "https://github.com/AdCrunchSoftware/Filters/issues",
"licenseId": 4,
"name": "AdCrunch for Adblock Plus"
}
]

View file

@ -6138,5 +6138,9 @@
{
"filterListId": 2737,
"maintainerId": 199
},
{
"filterListId": 2738,
"maintainerId": 200
}
]

View file

@ -9086,5 +9086,9 @@
{
"filterListId": 2736,
"syntaxId": 4
},
{
"filterListId": 2738,
"syntaxId": 3
}
]

View file

@ -13046,5 +13046,13 @@
{
"filterListId": 2737,
"tagId": 25
},
{
"filterListId": 2738,
"tagId": 2
},
{
"filterListId": 2738,
"tagId": 5
}
]

View file

@ -16839,5 +16839,11 @@
"id": 3069,
"primariness": 1,
"url": "https://bloquebollore.codeberg.page/desarmons-bollore-et-l-extreme-droite.txt"
},
{
"filterListId": 2738,
"id": 3070,
"primariness": 1,
"url": "https://raw.githubusercontent.com/AdCrunchSoftware/Filters/refs/heads/main/AdCrunchforABP.txt"
}
]

View file

@ -1028,5 +1028,10 @@
"id": 199,
"name": "BloqueBollore",
"url": "https://codeberg.org/BloqueBollore/"
},
{
"id": 200,
"name": "AdCrunchSoftware",
"url": "https://github.com/AdCrunchSoftware"
}
]