Skip to content

Commit

Permalink
Tidy up filter list headers
Browse files Browse the repository at this point in the history
Drop `%version%` for now.

Remove header data from imported sublists at build-from-template time.
  • Loading branch information
gorhill committed Oct 26, 2023
1 parent 1b220b4 commit f05512e
Show file tree
Hide file tree
Showing 39 changed files with 70 additions and 81 deletions.
3 changes: 1 addition & 2 deletions filters/annoyances-cookies.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
! Title: uBlock filters – Cookie Notices
! Version: %version%
! Last modified: %timestamp%
! Expires: 7 days
! Description: |
! Filters optimized for uBlock Origin, to be used with EasyList's
! and/or Adguard's "Cookie Notices" list(s)
! Expires: 7 days
! License: https://github.com/uBlockOrigin/uAssets/blob/master/LICENSE
! Homepage: https://github.com/uBlockOrigin/uAssets
! Forums: https://github.com/uBlockOrigin/uAssets/issues
Expand Down
4 changes: 2 additions & 2 deletions filters/annoyances-others.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
! Title: uBlock filters – Other Annoyances
! Last modified: %timestamp%
! Expires: 7 days
! Description: |
! Filters optimized for uBlock Origin, to be used with EasyList's
! and/or Adguard's "Other Annoyances" list(s)
! Expires: 7 days
! Last modified: %timestamp%
! License: https://github.com/uBlockOrigin/uAssets/blob/master/LICENSE
! Homepage: https://github.com/uBlockOrigin/uAssets
! Forums: https://github.com/uBlockOrigin/uAssets/issues
Expand Down
4 changes: 2 additions & 2 deletions filters/annoyances.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
! Title: uBlock₀ filters – Annoyances
! Last modified: %timestamp%
! Expires: 7 days
! Description: |
! Filters optimized for uBlock Origin, to be used with Fanboy's
! and/or Adguard's "Annoyances" list(s)
! Expires: 7 days
! Last modified: %timestamp%
! License: https://github.com/uBlockOrigin/uAssets/blob/master/LICENSE
! Homepage: https://github.com/uBlockOrigin/uAssets
! Forums: https://github.com/uBlockOrigin/uAssets/issues
Expand Down
3 changes: 1 addition & 2 deletions filters/badware.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
! Title: uBlock₀ filters – Badware risks
! Version: %version%
! Last modified: %timestamp%
! Expires: 5 days
! Description: |
! For sites documented to put users at risk of installing
! adware/crapware/malware, having login credentials stolen, etc.
! The purpose is to at least ensure a user is warned of the risks ahead.
! Expires: 5 days
! License: https://github.com/uBlockOrigin/uAssets/blob/master/LICENSE
! Homepage: https://github.com/uBlockOrigin/uAssets
!
Expand Down
4 changes: 2 additions & 2 deletions filters/filters-2020.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
! Title: uBlock₀ filters (2020)
! Description: Filters optimized for uBlock, to be used along EasyList
! Title: uBlock filters (2020)
! Last modified: %timestamp%
! Description: Filters optimized for uBlock, to be used along EasyList
! Homepage: https://github.com/uBlockOrigin/uAssets
! License: https://github.com/uBlockOrigin/uAssets/blob/master/LICENSE
! new filters from april 2020 to ->
Expand Down
4 changes: 2 additions & 2 deletions filters/filters-2021.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
! Title: uBlock₀ filters (2021)
! Description: Filters optimized for uBlock, to be used along EasyList
! Title: uBlock filters (2021)
! Last modified: %timestamp%
! Description: Filters optimized for uBlock, to be used along EasyList
! Homepage: https://github.com/uBlockOrigin/uAssets
! License: https://github.com/uBlockOrigin/uAssets/blob/master/LICENSE
! New filters from January 2021 to ->
Expand Down
4 changes: 2 additions & 2 deletions filters/filters-2022.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
! Title: uBlock₀ filters (2022)
! Description: Filters optimized for uBlock, to be used along EasyList
! Title: uBlock filters (2022)
! Last modified: %timestamp%
! Description: Filters optimized for uBlock, to be used along EasyList
! Homepage: https://github.com/uBlockOrigin/uAssets
! License: https://github.com/uBlockOrigin/uAssets/blob/master/LICENSE
! New filters from January 2022 to ->
Expand Down
4 changes: 2 additions & 2 deletions filters/filters-2023.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
! Title: uBlock₀ filters (2023)
! Description: Filters optimized for uBlock, to be used along EasyList
! Title: uBlock filters (2023)
! Last modified: %timestamp%
! Description: Filters optimized for uBlock, to be used along EasyList
! Homepage: https://github.com/uBlockOrigin/uAssets
! License: https://github.com/uBlockOrigin/uAssets/blob/master/LICENSE
! New filters from January 2023 to ->
Expand Down
2 changes: 1 addition & 1 deletion filters/filters-mobile.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
! Title: uBlock filters – Mobile
! Description: Filters optimized for uBlock, to be used along EasyList
! Last modified: %timestamp%
! Description: Filters optimized for uBlock, to be used along EasyList
! Homepage: https://github.com/uBlockOrigin/uAssets
! License: https://github.com/uBlockOrigin/uAssets/blob/master/LICENSE
!
Expand Down
5 changes: 2 additions & 3 deletions filters/filters.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
! Title: uBlock₀ filters
! Version: %version%
! Title: uBlock filters
! Last modified: %timestamp%
! Description: Filters optimized for uBlock, to be used along EasyList
! Expires: 5 days
! Description: Filters optimized for uBlock, to be used along EasyList
! Homepage: https://github.com/uBlockOrigin/uAssets
! License: https://github.com/uBlockOrigin/uAssets/blob/master/LICENSE
!
Expand Down
4 changes: 2 additions & 2 deletions filters/lan-block.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[uBlock Origin]
! Title: Block Outsider Intrusion into LAN
! Description: Prevents public internet sites from digging into your local LAN files.
! Expires: 29 days
! Last modified: %timestamp%
! Expires: 29 days
! Description: Prevents public internet sites from digging into your local LAN files.
! Requested here: https://github.com/uBlockOrigin/uAssets/issues/4318
! Revived for: https://github.com/uBlockOrigin/uBlock-issues/issues/1070
! Homepage: https://github.com/uBlockOrigin/uAssets
Expand Down
6 changes: 3 additions & 3 deletions filters/legacy.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
! Title: uBlock₀ filters -- Legacy
! Description: Filters to address issues specific to legacy versions of uBO.
! Expires: 11 days
! Title: uBlock filters -- Legacy
! Last modified: %timestamp%
! Expires: 11 days
! Description: Filters to address issues specific to legacy versions of uBO.
! Homepage: https://github.com/uBlockOrigin/uAssets
! License: https://github.com/uBlockOrigin/uAssets/blob/master/LICENSE
!
Expand Down
5 changes: 2 additions & 3 deletions filters/privacy.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
! Title: uBlock₀ filters – Privacy
! Version: %version%
! Title: uBlock filters – Privacy
! Last modified: %timestamp%
! Expires: 7 days
! Description: |
! Some of these filters make use of the `important` filter option,
! which purpose is to guarantee that a filter won't be overriden by
! exception filters.
! Expires: 7 days
! License: https://github.com/uBlockOrigin/uAssets/blob/master/LICENSE
! Homepage: https://github.com/uBlockOrigin/uAssets
!
Expand Down
3 changes: 1 addition & 2 deletions filters/quick-fixes.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
! Title: uBlock₀ filters – Quick fixes
! Version: %version%
! Last modified: %timestamp%
! Description: Immediate, temporary filters to fix websites
! Expires: 12 hours
! Description: Immediate, temporary filters to fix websites
! License: https://github.com/uBlockOrigin/uAssets/blob/master/LICENSE
! Homepage: https://github.com/uBlockOrigin/uAssets
! Forums: https://github.com/uBlockOrigin/uAssets/issues
Expand Down
6 changes: 3 additions & 3 deletions filters/resource-abuse.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
! Title: uBlock₀ filters – Resource abuse
! Title: uBlock filters – Resource abuse
! Last modified: %timestamp%
! Expires: 7 days
! Description: |
! To foil sites potentially abusing CPU/bandwidth resources without informed
! consent. Any such resource-abuse scripts MUST be opt-in, with complete
! informed consent from the visitor.
! Expires: 7 days
! Last modified: %timestamp%
! License: https://github.com/uBlockOrigin/uAssets/blob/master/LICENSE
! Homepage: https://github.com/uBlockOrigin/uAssets
!
Expand Down
4 changes: 2 additions & 2 deletions filters/ubol-filters.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
! Title: uBO Lite filters
! Description: Filters optimized for uBO Lite
! Expires: 4 days
! Last modified: %timestamp%
! Expires: 4 days
! Description: Filters optimized for uBO Lite
! Homepage: https://github.com/uBlockOrigin/uAssets
! License: https://github.com/uBlockOrigin/uAssets/blob/master/LICENSE
!
Expand Down
5 changes: 2 additions & 3 deletions filters/unbreak.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
! Title: uBlock₀ filters – Unbreak
! Version: %version%
! Title: uBlock filters – Unbreak
! Last modified: %timestamp%
! Expires: 5 days
! Description:
! Filters optimized for uBlock Origin, to unbreak sites broken as
! a result of 3rd-party filter lists enabled by default.
! Expires: 5 days
! Homepage: https://github.com/uBlockOrigin/uAssets
! License: https://github.com/uBlockOrigin/uAssets/blob/master/LICENSE
!
Expand Down
1 change: 0 additions & 1 deletion templates/easylist-annoyances.template
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[Adblock Plus 2.0]
! Title: EasyList – Annoyances
! Version: %version%
! Last modified: %timestamp%
! Expires: 7 days (update frequency)
%include easylist:template_header.txt%
Expand Down
1 change: 0 additions & 1 deletion templates/easylist-chat.template
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[Adblock Plus 2.0]
! Title: EasyList – Chat Widgets
! Version: %version%
! Last modified: %timestamp%
%include easylist:template_header.txt%
!
Expand Down
1 change: 0 additions & 1 deletion templates/easylist-cookies.template
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[Adblock Plus 2.0]
! Title: EasyList – Cookie Notices
! Version: %version%
! Last modified: %timestamp%
! Expires: 7 days (update frequency)
%include easylist:template_header.txt%
Expand Down
1 change: 0 additions & 1 deletion templates/easylist-newsletters.template
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[Adblock Plus 2.0]
! Title: EasyList – Newsletter Notices
! Version: %version%
! Last modified: %timestamp%
! Expires: 7 days (update frequency)
%include easylist:template_header.txt%
Expand Down
1 change: 0 additions & 1 deletion templates/easylist-notifications.template
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[Adblock Plus 2.0]
! Title: EasyList – Notifications
! Version: %version%
! Last modified: %timestamp%
! Expires: 7 days (update frequency)
%include easylist:template_header.txt%
Expand Down
1 change: 0 additions & 1 deletion templates/easylist-social.template
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[Adblock Plus 2.0]
! Title: EasyList – Social Widgets
! Version: %version%
! Last modified: %timestamp%
! Expires: 7 days (update frequency)
%include easylist:template_header.txt%
Expand Down
3 changes: 1 addition & 2 deletions templates/easylist.template
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
[Adblock Plus 2.0]
! Title: EasyList
! Version: %version%
! Last modified: %timestamp%
! Expires: 6 days (update frequency)
! Diff-Path: %diffpath%
! Diff-Name: easylist
! Expires: 6 days (update frequency)
%include easylist:template_header.txt%
!
!-----------------------General advert blocking filters-----------------------!
Expand Down
3 changes: 1 addition & 2 deletions templates/easyprivacy.template
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
[Adblock Plus 1.1]
! Title: EasyPrivacy
! Version: %version%
! Last modified: %timestamp%
! Expires: 6 days (update frequency)
! Diff-Path: %diffpath%
! Diff-Name: easyprivacy
! Expires: 6 days (update frequency)
%include easylist:template_header.txt%
!
!-----------------General tracking systems-----------------!
Expand Down
7 changes: 7 additions & 0 deletions templates/ublock-annoyances.template
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
! Title: uBlock filters – Annoyances
! Last modified: %timestamp%
! Expires: 7 days
! Diff-Path: %diffpath%
! Diff-Name: ublock-annoyances
! License: https://github.com/uBlockOrigin/uAssets/blob/master/LICENSE

%include uAssets:filters/annoyances.txt%
8 changes: 1 addition & 7 deletions templates/ublock-filters.template
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
! Title: uBlock filters
! Version: %version%
! Last modified: %timestamp%
! Expires: 5 days
! Diff-Path: %diffpath%
! Diff-Name: ublock-filters
! Description: Filters optimized for uBlock, to be used along EasyList
! Expires: 5 days
! Homepage: https://github.com/uBlockOrigin/uAssets
! License: https://github.com/uBlockOrigin/uAssets/blob/master/LICENSE
!
! GitHub issues: https://github.com/uBlockOrigin/uAssets/issues
! GitHub pull requests: https://github.com/uBlockOrigin/uAssets/pulls

%include uAssets:filters/filters.txt%

Expand Down
11 changes: 2 additions & 9 deletions templates/ublock-privacy.template
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
! Title: uBlock filters – Privacy
! Version: %version%
! Last modified: %timestamp%
! Description: |
! Some of these filters make use of the `important` filter option,
! which purpose is to guarantee that a filter won't be overriden by
! exception filters.
! Expires: 7 days
! Diff-Path: %diffpath%
! Diff-Name: ublock-privacy
! License: https://github.com/uBlockOrigin/uAssets/blob/master/LICENSE
! Homepage: https://github.com/uBlockOrigin/uAssets
!
! GitHub issues: https://github.com/uBlockOrigin/uAssets/issues
! GitHub pull requests: https://github.com/uBlockOrigin/uAssets/pulls

%include uAssets:filters/privacy.txt%

Expand Down
5 changes: 3 additions & 2 deletions templates/ublock-quick-fixes.template
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
! Title: uBlock₀ filters – Quick fixes
! Version: %version%
! Title: uBlock filters – Quick fixes
! Last modified: %timestamp%
! Expires: 12 hours
! Diff-Path: %diffpath%
! Diff-Name: ublock-quick-fixes
! License: https://github.com/uBlockOrigin/uAssets/blob/master/LICENSE

%include uAssets:filters/quick-fixes.txt%
3 changes: 2 additions & 1 deletion templates/ublock-unbreak.template
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
! Title: uBlock₀ filters – Unbreak
! Version: %version%
! Last modified: %timestamp%
! Expires: 5 days
! Diff-Path: %diffpath%
! Diff-Name: ublock-unbreak
! License: https://github.com/uBlockOrigin/uAssets/blob/master/LICENSE

%include uAssets:filters/unbreak.txt%
1 change: 0 additions & 1 deletion thirdparties/easylist/easylist-annoyances.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[Adblock Plus 2.0]
! Title: EasyList – Annoyances
! Version: %version%
! Last modified: %timestamp%
! Expires: 7 days (update frequency)
! *** easylist:template_header.txt ***
Expand Down
1 change: 0 additions & 1 deletion thirdparties/easylist/easylist-chat.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[Adblock Plus 2.0]
! Title: EasyList – Chat Widgets
! Version: %version%
! Last modified: %timestamp%
! *** easylist:template_header.txt ***
!
Expand Down
1 change: 0 additions & 1 deletion thirdparties/easylist/easylist-cookies.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[Adblock Plus 2.0]
! Title: EasyList – Cookie Notices
! Version: %version%
! Last modified: %timestamp%
! Expires: 7 days (update frequency)
! *** easylist:template_header.txt ***
Expand Down
1 change: 0 additions & 1 deletion thirdparties/easylist/easylist-newsletters.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[Adblock Plus 2.0]
! Title: EasyList – Newsletter Notices
! Version: %version%
! Last modified: %timestamp%
! Expires: 7 days (update frequency)
! *** easylist:template_header.txt ***
Expand Down
1 change: 0 additions & 1 deletion thirdparties/easylist/easylist-notifications.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[Adblock Plus 2.0]
! Title: EasyList – Notifications
! Version: %version%
! Last modified: %timestamp%
! Expires: 7 days (update frequency)
! *** easylist:template_header.txt ***
Expand Down
1 change: 0 additions & 1 deletion thirdparties/easylist/easylist-social.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[Adblock Plus 2.0]
! Title: EasyList – Social Widgets
! Version: %version%
! Last modified: %timestamp%
! Expires: 7 days (update frequency)
! *** easylist:template_header.txt ***
Expand Down
3 changes: 1 addition & 2 deletions thirdparties/easylist/easylist.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
[Adblock Plus 2.0]
! Title: EasyList
! Version: %version%
! Last modified: %timestamp%
! Expires: 6 days (update frequency)
! Diff-Path: %diffpath%
! Diff-Name: easylist
! Expires: 6 days (update frequency)
! *** easylist:template_header.txt ***
!
! Please report any unblocked adverts or problems
Expand Down
3 changes: 1 addition & 2 deletions thirdparties/easylist/easyprivacy.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
[Adblock Plus 1.1]
! Title: EasyPrivacy
! Version: %version%
! Last modified: %timestamp%
! Expires: 6 days (update frequency)
! Diff-Path: %diffpath%
! Diff-Name: easyprivacy
! Expires: 6 days (update frequency)
! *** easylist:template_header.txt ***
!
! Please report any unblocked adverts or problems
Expand Down
Loading

0 comments on commit f05512e

Please sign in to comment.