From 97fc281a7134dd5937c9e7f1a113b5195bba72df Mon Sep 17 00:00:00 2001 From: Sam Ruby Date: Sun, 23 Dec 2007 10:25:04 -0500 Subject: [PATCH] Twitter countermeasures --- filters/notweets.py | 6 ++++++ themes/asf/index.html.xslt | 17 +++++++++++++++-- 2 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 filters/notweets.py diff --git a/filters/notweets.py b/filters/notweets.py new file mode 100644 index 0000000..5be6dd5 --- /dev/null +++ b/filters/notweets.py @@ -0,0 +1,6 @@ +#remove all tweets +import sys + +data = sys.stdin.read() +if data.find('tag:twitter.com,') < 0: + sys.stdout.write(data) diff --git a/themes/asf/index.html.xslt b/themes/asf/index.html.xslt index bdc54c0..8901d4c 100644 --- a/themes/asf/index.html.xslt +++ b/themes/asf/index.html.xslt @@ -108,7 +108,13 @@ - + + + + + + + @@ -189,7 +195,14 @@ - + + + + + + +