Skip to content
This repository has been archived by the owner on Aug 5, 2020. It is now read-only.

Commit

Permalink
Separate filter lines into {black,white}list
Browse files Browse the repository at this point in the history
  • Loading branch information
kbinani committed Feb 20, 2017
1 parent 74302ce commit 7da6bac
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 24 deletions.
3 changes: 3 additions & 0 deletions blacklist.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
https://www.youtube.com^
||googlesyndication.com^
||doubleclick.net^
9 changes: 0 additions & 9 deletions filter.txt

This file was deleted.

23 changes: 12 additions & 11 deletions sign
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#!/bin/bash

(
cd "$(dirname "$0")"
(
echo "[Adblock Plus 1.1]"
cat filter.txt
) | python ext/adblockplus/addChecksum.py > signed.txt

cat signed.txt | python ext/adblockplus/validateChecksum.py
)
#!/bin/bash

(
cd "$(dirname "$0")"
(
echo "[Adblock Plus 1.1]"
cat blacklist.txt | sort
cat whitelist.txt | sort | sed 's/^\(.*\)$/@@\1/g'
) | python ext/adblockplus/addChecksum.py > signed.txt

cat signed.txt | python ext/adblockplus/validateChecksum.py
)
9 changes: 5 additions & 4 deletions signed.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
[Adblock Plus 1.1]
! Checksum: C/ycEjf+uQtjh+fliAGBzg
! Checksum: Qp9QMvPyJnS9jm6INfzgvQ
||doubleclick.net^
||googlesyndication.com^
https://www.youtube.com^
@@https://www.youtube.com/*_ajax?*
@@https://www.youtube.com/api/stats/atr*
@@https://www.youtube.com/heartbeat?*
@@https://www.youtube.com/yts/jsbin/*
@@https://www.youtube.com/playlist_edit_service_ajax/?*
@@https://www.youtube.com/yts/cssbin/*
@@https://www.youtube.com/yts/img/*
||googlesyndication.com^
||doubleclick.net^
@@https://www.youtube.com/yts/jsbin/*
7 changes: 7 additions & 0 deletions whitelist.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
https://www.youtube.com/*_ajax?*
https://www.youtube.com/api/stats/atr*
https://www.youtube.com/heartbeat?*
https://www.youtube.com/yts/jsbin/*
https://www.youtube.com/yts/cssbin/*
https://www.youtube.com/yts/img/*
https://www.youtube.com/playlist_edit_service_ajax/?*

0 comments on commit 7da6bac

Please sign in to comment.