aboutsummaryrefslogtreecommitdiff
path: root/pentadactyl/.pentadactylrc
diff options
context:
space:
mode:
authorAdrian Kummerlaender2016-10-10 21:08:40 +0200
committerAdrian Kummerlaender2016-10-10 21:08:40 +0200
commitd07415cc754910b7e78fb857adec55e2b8150871 (patch)
treea84bd31c8c98ddcae729905fb9de1f30963c355b /pentadactyl/.pentadactylrc
parenta986cee5c183d9e2c2d6b6b40b862ba304d80c90 (diff)
downloaddotfiles-d07415cc754910b7e78fb857adec55e2b8150871.tar
dotfiles-d07415cc754910b7e78fb857adec55e2b8150871.tar.gz
dotfiles-d07415cc754910b7e78fb857adec55e2b8150871.tar.bz2
dotfiles-d07415cc754910b7e78fb857adec55e2b8150871.tar.lz
dotfiles-d07415cc754910b7e78fb857adec55e2b8150871.tar.xz
dotfiles-d07415cc754910b7e78fb857adec55e2b8150871.tar.zst
dotfiles-d07415cc754910b7e78fb857adec55e2b8150871.zip
Adapt pentadactyl config for `uMatrix` and `Scrapbook X`
Diffstat (limited to 'pentadactyl/.pentadactylrc')
-rw-r--r--pentadactyl/.pentadactylrc16
1 files changed, 3 insertions, 13 deletions
diff --git a/pentadactyl/.pentadactylrc b/pentadactyl/.pentadactylrc
index a0791a0..41fb6ef 100644
--- a/pentadactyl/.pentadactylrc
+++ b/pentadactyl/.pentadactylrc
@@ -33,6 +33,8 @@ hi HintElem
hi Hint[active] background:#aadb0f;color:#161616;
hi HintActive background:#aadb0f;
+style -name ublick * #nav-bar * {visibility:visible}
+
command! reader -js <<EOF
if ( buffer.URL.spec.startsWith('about:reader?') ) {
dactyl.execute('back')
@@ -41,18 +43,6 @@ if ( buffer.URL.spec.startsWith('about:reader?') ) {
}
EOF
-command! push2inbox -js <<EOF
-var selection = content.getSelection().toString();
-var entry = '\* ' + buffer.URL;
-
-if ( selection ) {
- entry += '\\n\\t\* ' + selection;
-} else if ( content.document.title ) {
- entry += '\\n\\t\* ' + content.document.title;
-}
-
-dactyl.execute('!echo -e "' + entry + '" >> ~/note/src/web/inbox.wiki');
-EOF
command! cite -js <<EOF
var entry = '\\n'
+ ' [...] ' + content.getSelection().toString().replace('\n', '\n ') + ' [...]\\n'
@@ -60,7 +50,7 @@ var entry = '\\n'
+ ' ― ' + buffer.URL
+ '\\n';
-dactyl.execute('!echo -e "' + entry.replace('"', '\"') + '" >> ~/note/src/web/inbox.wiki');
+dactyl.execute('!echo -e "' + entry.replace('"', '\"') + '" >> ~/note/src/quote/inbox.wiki');
EOF
map -builtin -ex <F9> :reader