Skip to content

Instantly share code, notes, and snippets.

@aplaice
aplaice / readermode_userContent.css
Last active November 21, 2021 07:35
Customise appearance of Firefox's reader mode
@-moz-document url-prefix("about:reader") {
/*
Auto-hide reader sidebar (it re-appears only when hovering over it)
source:
https://www.reddit.com/r/firefox/comments/39tcie/how_do_i_hide_the_sidebar_in_reader_view/cs6dmqb
*/
.reader-toolbar,.reader-toolbar .button:not(:hover) {
background-color:transparent !important;
@aplaice
aplaice / remove_toolbar.patch
Created January 4, 2018 23:10
Patch to hide evince toolbar (and menubar) in Ubuntu 16.04 (evince 3.18)
--- a/shell/ev-application.c 2018-01-02 23:00:00.502095551 +0100
+++ b/shell/ev-application.c 2018-01-03 23:15:00.713553169 +0100
@@ -1059,9 +1059,24 @@
}
static void
+app_toggle_toolbar_cb (GSimpleAction *action,
+ GVariant *parameter,
+ gpointer user_data)
+{
@aplaice
aplaice / cvim_compatibility_report.md
Created October 22, 2017 13:33
Compatibility report for cvim 4d690bb0f76ac13f8cfc4eb00c6add4c5f1e4ebe from https://www.extensiontest.com

2 compatibility issues found:

What are compatibility issues?

Compatibility issues warn about the usage of APIs or permissions not available in the latest version of Firefox.

@aplaice
aplaice / xdisp_fragment.c
Created June 16, 2017 14:40
Re-definition of IT_DISPLAYING_WHITESPACE allowing wrapping at '/'
#define IT_DISPLAYING_WHITESPACE(it) \
((it->what == IT_CHARACTER && (it->c == ' ' || it->c == '\t' || it->c == '/')) \
|| ((STRINGP (it->string) \
&& (SREF (it->string, IT_STRING_BYTEPOS (*it)) == ' ' \
|| SREF (it->string, IT_STRING_BYTEPOS (*it)) == '\t' \
|| SREF (it->string, IT_STRING_BYTEPOS (*it)) == '/')) \
|| (it->s \
&& (it->s[IT_BYTEPOS (*it)] == ' ' \
|| it->s[IT_BYTEPOS (*it)] == '\t' \
|| it->s[IT_BYTEPOS (*it)] == '/')) \
@aplaice
aplaice / MyEventHook.hs
Last active June 2, 2016 17:25
Enable firefox fullscreen within tile
-- BSD
module MyEventHook (fullscreenEventHook') where
import Data.List
import Data.Maybe
import Data.Monoid
import XMonad
import Control.Monad