summaryrefslogtreecommitdiff
path: root/mac/.qutebrowser/greasemonkey/xkcd.css.js
blob: 2dfaa1d710d14ae78f721b997da22bc1df23b7c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// ==UserScript==
// @name        xkcd
// @include     *://xkcd.com/*
// ==/UserScript==

/* ~/.config/qutebrowser/greasemonkey/xkcd.css.js :: */

var content = document.getElementById('middleContainer');
content.innerHTML = content.innerHTML.split('<br>')[0] + '<div>\n';

GM_addStyle(`
    body, #middleContainer {
        background: var(--color-bg) !important;
        color: var(--color-fg) !important;
    }

    #bottom,
    #topContainer {
        display: none !important;
    }

    ul.comicNav li a {
        background: var(--color-bar) !important;
        border: none !important;
        box-shadow: none !important;
        -mox-box-shadow: none !important;
        -webkit-box-shadow: none !important;
    }

    .box {
        border: none !important;
    }

    a {
        text-decoration: none !important;
        transition: none !important;
    }
    a, a:visited {
        color: var(--color-link) !important;
    }
    a:hover {
        color: var(--color-active) !important;
    }
`);