Update 1.3.0: add another Prime filter to Amazon list, refactor header generation

This commit is contained in:
2025-07-02 11:57:23 -04:00
parent e74533e8f9
commit 93cb7220e0
13 changed files with 92 additions and 48 deletions

View File

@@ -1,3 +1,4 @@
# -*- org-confirm-babel-evaluate: nil -*-
#+TITLE: ublock-filters
#+AUTHOR: chase
#+OPTIONS: toc:nil
@@ -166,6 +167,8 @@ amazon.com##.prime-updp-headline-primary
amazon.com##.prime-updp-mobile-renewal-text-offer
amazon.com##.prime-updp-mobile-table
amazon.com##.prime-legal-text-primary
! Prime box on product page
amazon.com##.abb-widget-box-border.a-box
#+end_src
** Insight Central
@@ -200,7 +203,7 @@ menards.com##div#emailBanner.email-banner.floating.w-100
* Contributing
Filter lists are tangled out of this document with org-babel. Please submit
Filter lists are tangled out of this document with org-babel. Please make all
changes to =README.org= rather than the individual filter list files.
@@ -220,10 +223,8 @@ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
#+end_src
* Local Variables :noexport:
Local Variables:
org-confirm-babel-evaluate: nil
End:
* Development :noexport:
*This section is not rendered when viewing on Gitea.*
** Adding Lists
1. Create a new entry under the [[Filter Lists][Filter Lists]] header with the name and contents of the list.
@@ -234,23 +235,26 @@ End:
** Header Generation
#+name: lastmodified
#+begin_src shell
date -u -I
#+begin_src emacs-lisp
(format-time-string "%F")
#+end_src
#+name: header
#+begin_src shell :noweb yes
! Version: 1.2.0
#+begin_src txt :noweb yes
[uBlock origin]
! Version: 1.3.0
! Last modified: <<lastmodified()>>
! Expires: 2 weeks (update frequency)
! Expires: 2 days (update frequency)
! Homepage: https://git.traphouse.cathoderaytube.net/chase/ublock-filters
! License: https://git.traphouse.cathoderaytube.net/chase/ublock-filters/src/branch/main/LICENSE
!!! This file is generated by README.org and should not be edited directly !!!
#+end_src
** File Generation
*** All Filter Lists
#+begin_src txt :noweb yes :tangle chase-all.txt
! Title: All Filters
! Title: chase's uBlock Filters
! Description: All filters provided by chase's filter repo
<<header>>