summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2013-05-03 22:14:46 +0200
committerJan Pokorný <jpokorny@redhat.com>2013-05-03 22:14:46 +0200
commit6d3c9990032a3da598a428f73b2cdf684958dad7 (patch)
tree22e2caec8a1c49941b798d0389837e47c1b79cf5 /scripts
parent460236f5fe9a37c27c74d6ac5872a63315fa814d (diff)
downloaddotfiles-6d3c9990032a3da598a428f73b2cdf684958dad7.tar.gz
dotfiles-6d3c9990032a3da598a428f73b2cdf684958dad7.tar.xz
dotfiles-6d3c9990032a3da598a428f73b2cdf684958dad7.zip
Firefox settings: automate feed button in the bottom toolbar
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/firstrun/10-firefox/main10
-rw-r--r--scripts/firstrun/10-firefox/toolbar-layout.xsl23
2 files changed, 31 insertions, 2 deletions
diff --git a/scripts/firstrun/10-firefox/main b/scripts/firstrun/10-firefox/main
index 5f10a43..9661bfa 100644
--- a/scripts/firstrun/10-firefox/main
+++ b/scripts/firstrun/10-firefox/main
@@ -64,7 +64,7 @@ echo created "${PROFILE}"
cp.write(stdout)
EOF
-echo "Please set security.dialog_enable_delay to zero (highly recommended)"
+echo "Please set security.dialog_enable_delay to zero (recommended to save time)"
${FIREFOX} about:config
for plugin in $plugins; do
@@ -128,13 +128,19 @@ EOF
mkdir -p "${PROFILE}/chrome"
cat > "${PROFILE}/chrome/userContent.css" <<-EOF
+ /* increase the size of checkboxes */
input[type=checkbox]
{
- -moz-transform: scale(2);
+ -moz-transform: scale(1.5);
padding: 10px;
}
EOF
+mv "${PROFILE}/localstore.rdf{,.orig}"
+# add feed button to bottom toolbar
+xsltproc toolbar-layout.xsl -o "${PROFILE}/localstore.rdf{,.orig}"
+rm -f -- "${PROFILE}/localstore.rdf.orig"
+
sleep 2 \
&& ${FIREFOX} -pentadactyl "++cmd 'source pentadactylrc-firstrun' +c 'mkvimruntime'"
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>