diff options
Diffstat (limited to 'scripts/firstrun/10-firefox/toolbar-layout.xsl')
-rw-r--r-- | scripts/firstrun/10-firefox/toolbar-layout.xsl | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/scripts/firstrun/10-firefox/toolbar-layout.xsl b/scripts/firstrun/10-firefox/toolbar-layout.xsl new file mode 100644 index 0000000..a596feb --- /dev/null +++ b/scripts/firstrun/10-firefox/toolbar-layout.xsl @@ -0,0 +1,23 @@ +<!-- + TODO: increase modularity and possibility to predefine more + order + --> +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> + <xsl:template match="@*|node()"> + <xsl:copy> + <xsl:apply-templates select="@*|node()"/> + </xsl:copy> + </xsl:template> + <!-- xsl:template match="@currentset[../RDF:Description[]]" --> + <xsl:template match="@currentset[ + name(..)='RDF:Description' + and + ../@RDF:about='chrome://browser/content/browser.xul#addon-bar' + ]"> + <xsl:attribute name="currentset"> + <!-- TODO: check if not empty or there already --> + <xsl:value-of select="concat(., '|feed-button')"/> + </xsl:attribute> + </xsl:template> +</xsl:stylesheet> |