summaryrefslogtreecommitdiffstats
path: root/.config/pancake/unclutter/duckduckgo.xsl
blob: 2bf6e2bc12264646a4c5a3d2f4e8fa1092ad10de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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>