summaryrefslogtreecommitdiffstats
path: root/kio/useragent.pl
diff options
context:
space:
mode:
Diffstat (limited to 'kio/useragent.pl')
-rwxr-xr-xkio/useragent.pl13
1 files changed, 13 insertions, 0 deletions
diff --git a/kio/useragent.pl b/kio/useragent.pl
new file mode 100755
index 000000000..f31e31e1d
--- /dev/null
+++ b/kio/useragent.pl
@@ -0,0 +1,13 @@
+#!/usr/bin/perl
+# the script is called with interpreter, so don't worry about the path
+
+while(<>)
+{
+ if (($key, $domain, $useragent, $comment) = ($_ =~ /(Entry\d)=\.?([^:]+)::([^:]+)::([^\n]+)/))
+ {
+ printf ("[%s]\n", $domain);
+ printf ("UserAgent=%s\n", $useragent);
+ printf ("# DELETE %s\n", $key);
+ }
+}
+printf ("# DELETE EntriesCount\n");