diff options
author | defanor <defanor@uberspace.net> | 2017-12-13 17:32:02 +0300 |
---|---|---|
committer | defanor <defanor@uberspace.net> | 2017-12-13 17:32:02 +0300 |
commit | cd173146e98e9acb5c5cb4eea861019cc796932e (patch) | |
tree | bcf5293eec0a4cbda9c98af1438d64855b5c7645 /.config/pancake/unclutter/duckduckgo.xsl | |
parent | 90c144467eb67e1a020f51443613a3af133cff52 (diff) |
Add pancake configuration
Diffstat (limited to '.config/pancake/unclutter/duckduckgo.xsl')
-rw-r--r-- | .config/pancake/unclutter/duckduckgo.xsl | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/.config/pancake/unclutter/duckduckgo.xsl b/.config/pancake/unclutter/duckduckgo.xsl new file mode 100644 index 0000000..7db8766 --- /dev/null +++ b/.config/pancake/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="xml" 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> |