summaryrefslogtreecommitdiff
path: root/unclutter/duckduckgo.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'unclutter/duckduckgo.xsl')
-rw-r--r--unclutter/duckduckgo.xsl24
1 files changed, 24 insertions, 0 deletions
diff --git a/unclutter/duckduckgo.xsl b/unclutter/duckduckgo.xsl
new file mode 100644
index 0000000..2bf6e2b
--- /dev/null
+++ b/unclutter/duckduckgo.xsl
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+ <xsl:output method="html" indent="yes"/>
+ <xsl:template match="/">
+ <html>
+ <body>
+ DuckDuckGo
+ <xsl:for-each select="//tr[not(@class) or @class!='result-sponsored']">
+ <xsl:for-each select="td/a[@class='result-link']">
+ <br />
+ <br />
+ <a href="{@href}">
+ <xsl:value-of select="." />
+ </a>
+ </xsl:for-each>
+ <xsl:for-each select="td[@class='result-snippet']">
+ <br />
+ <xsl:value-of select="." />
+ </xsl:for-each>
+ </xsl:for-each>
+ </body>
+ </html>
+ </xsl:template>
+</xsl:stylesheet>