scripts

misc scripts and tools
git clone git://git.2f30.org/scripts.git
Log | Files | Refs

commit 4b899c7c61084b11790152d0b33ffff9d293a6b1
parent 855b424096b5fc74b1294f0d553b814b218da751
Author: sin <sin@2f30.org>
Date:   Wed Apr 30 19:57:55 +0100

Add web page script tag remover by tsakos

Diffstat:
tagstrip.sed | 13+++++++++++++
1 file changed, 13 insertions(+), 0 deletions(-)
diff --git a/tagstrip.sed b/tagstrip.sed @@ -0,0 +1,13 @@ +# sed script for removing script tags +# from web pages for better offline viewing +# experience. + +# instructions: +# save it as strip.sed or any other filename +# you like. + +# usage: +# sed -f strip.sed file.html + +s%<script.*>.*</script>%<!-- deleted -->% +/<script.*>.*/,/<\/script>/s/.*/<!-- deleted -->/