hi all,
i've modified the sidki filter "Remove Pre-HTML JavaScripts" as follow:
Name = "Remove Pre-HTML JavaScripts"
Active = TRUE
URL = "$TYPE(htm)"
Bounds = "*<html*>"
Limit = 2048
Match = "(#$NEST(<script,</script*>))+#"
Replace = "@$STOP()"
this way the filter always matches, then always stops and will not be checked for the rest of page.
previous version of bounds did it match every time the <script> tag was encountered, but if it was not before the <html> tag the filter not stopped and its bounds continued to be checked for every <script> in the page.
also, modifying the bounds and making the filter always match, we have to renounce to the info [PreScript killed], but who cares

if you apply this modify, you can also remove the line:
<!doctype*>$SET(1= )
from my managedtags.txt list, because everything is not a script before the <html> tag will be preserved by the new version of "Remove Pre-HTML JavaScripts".
this causes also a little improvement in filtering speed because every time the managedtags.txt list is scanned there will be a line in less to check.
NOTE: you have to place "Remove Pre-HTML JavaScripts" as your FIRST web filter following the ones matching <start>. For this filter that is the optimal position because it will match as soon as possible then it will be disabled.
let me know your comments and suggestions,
altosax.