summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/pancake/unclutter/duckduckgo.xsl24
-rw-r--r--.config/pancake/unclutter/github.xsl77
-rw-r--r--.config/pancake/unclutter/hacker-news.xsl33
-rw-r--r--.config/pancake/unclutter/lobsters.xsl20
-rw-r--r--.config/pancake/unclutter/mediawiki.xsl27
5 files changed, 0 insertions, 181 deletions
diff --git a/.config/pancake/unclutter/duckduckgo.xsl b/.config/pancake/unclutter/duckduckgo.xsl
deleted file mode 100644
index 2bf6e2b..0000000
--- a/.config/pancake/unclutter/duckduckgo.xsl
+++ /dev/null
@@ -1,24 +0,0 @@
-<?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>
diff --git a/.config/pancake/unclutter/github.xsl b/.config/pancake/unclutter/github.xsl
deleted file mode 100644
index c4e42d4..0000000
--- a/.config/pancake/unclutter/github.xsl
+++ /dev/null
@@ -1,77 +0,0 @@
-<?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>
- <xsl:apply-templates select="//div[@role='main']" />
- </body>
- </html>
- </xsl:template>
-
- <xsl:template match="nav[@role='navigation'] | ul[@class='numbers-summary'] | div[@class='repository-lang-stats']">
- <p>
- <xsl:for-each select=".//a">
- <xsl:if test="position()>1">
- |
- </xsl:if>
- <a href="{@href}">
- <xsl:value-of select="." />
- </a>
- </xsl:for-each>
- </p>
- </xsl:template>
-
- <!-- files -->
- <xsl:template match="div[@class='file-wrap']">
- <div>
- <xsl:for-each select=".//tr[position()>1]">
- <xsl:copy-of select="td[@class='content']//a" />
- (<xsl:copy-of select=".//time-ago" />)
- <br/>
- </xsl:for-each>
- </div>
- </xsl:template>
-
- <!-- code -->
- <xsl:template match="table[@class='highlight tab-size js-file-line-container']">
- <pre>
- <xsl:for-each select=".//td[@class='blob-code blob-code-inner js-file-line']">
- <xsl:value-of select="." />
- <xsl:text>&#xa;</xsl:text>
- </xsl:for-each>
- </pre>
- </xsl:template>
-
- <!-- watch, star, fork -->
- <xsl:template match="ul[@class='pagehead-actions']" />
- <!-- signup -->
- <xsl:template match="div[@class='signup-prompt-bg rounded-1']" />
- <!-- languages, duplication -->
- <xsl:template match="div[@class='repository-lang-stats-graph js-toggle-lang-stats']" />
- <!-- misc clutter -->
- <xsl:template match="div[@class='js-socket-channel js-updatable-content']" />
- <xsl:template match="div[@class='mt-3 mb-2 text-center']" />
- <xsl:template match="div[@class='subnav']" />
- <!-- issue filters and such -->
- <xsl:template match="div[@id='js-issues-toolbar']" />
- <!-- registration thing -->
- <xsl:template match="div[@class='px-4']" />
- <!-- another "sign up for free" thing -->
- <xsl:template match="div[@class='flash flash-warn mt-3']" />
- <!-- protips -->
- <xsl:template match="div[@class='protip']" />
- <!-- branch selection, new PR, etc -->
- <xsl:template match="div[@class='file-navigation in-mid-page']" />
-
-
- <!-- Catch-all: copy and apply templates -->
- <xsl:template match="node()" priority="0">
- <xsl:copy>
- <xsl:copy-of select="@*" />
- <xsl:apply-templates />
- </xsl:copy>
- </xsl:template>
-
-</xsl:stylesheet>
diff --git a/.config/pancake/unclutter/hacker-news.xsl b/.config/pancake/unclutter/hacker-news.xsl
deleted file mode 100644
index 0f8c352..0000000
--- a/.config/pancake/unclutter/hacker-news.xsl
+++ /dev/null
@@ -1,33 +0,0 @@
-<?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>
- Hacker News
- <xsl:for-each select="//td[@class='title' or @class='subtext']">
- <xsl:choose>
- <xsl:when test="@class = 'title'">
- <xsl:variable name="uri" select="a/@href"/>
- <xsl:if test="$uri!=''">
- <br />
- <br />
- <a href="{$uri}" >
- <xsl:value-of select="a" />
- </a>
- </xsl:if>
- </xsl:when>
- <xsl:when test="@class = 'subtext'">
- <br/>
- <xsl:value-of select="span[@class='age']" />
- |
- <a href="{a[last()]/@href}">
- <xsl:value-of select="a[last()]" />
- </a>
- </xsl:when>
- </xsl:choose>
- </xsl:for-each>
- </body>
- </html>
- </xsl:template>
-</xsl:stylesheet>
diff --git a/.config/pancake/unclutter/lobsters.xsl b/.config/pancake/unclutter/lobsters.xsl
deleted file mode 100644
index 92b58a7..0000000
--- a/.config/pancake/unclutter/lobsters.xsl
+++ /dev/null
@@ -1,20 +0,0 @@
-<?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>
- Lobsters
- <xsl:for-each select="//div[@class='details']">
- <p>
- <xsl:copy-of select="span[@class='link']/a" />
- <br/>
- <xsl:value-of select="div[@class='byline']/span[position()=1]" />
- |
- <xsl:copy-of select="div[@class='byline']/span[@class='comments_label']/a" />
- </p>
- </xsl:for-each>
- </body>
- </html>
- </xsl:template>
-</xsl:stylesheet>
diff --git a/.config/pancake/unclutter/mediawiki.xsl b/.config/pancake/unclutter/mediawiki.xsl
deleted file mode 100644
index 2c64c38..0000000
--- a/.config/pancake/unclutter/mediawiki.xsl
+++ /dev/null
@@ -1,27 +0,0 @@
-<?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>
- <xsl:apply-templates select="//div[@id='content']" />
- </body>
- </html>
- </xsl:template>
-
- <!-- Cut these out -->
- <xsl:template match="span[@class='mw-editsection']" />
- <xsl:template match="ul[@id='page-actions']" />
- <xsl:template match="div[@class='mw-ui-icon mw-ui-icon-element indicator']" />
- <xsl:template match="a[@class='mw-ui-icon mw-ui-icon-element mw-ui-icon-edit-enabled edit-page']" />
-
-
- <!-- Catch-all: copy and apply templates -->
- <xsl:template match="node()" priority="0">
- <xsl:copy>
- <xsl:copy-of select="@*" />
- <xsl:apply-templates />
- </xsl:copy>
- </xsl:template>
-</xsl:stylesheet>