about summary refs log tree commit diff stats
path: root/pug/options/twitter/twitter.pug
blob: d40b41a4b956e13e663c4dd648eae1c3e343f80c (plain) (blame)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
doctype html
html(lang="en")
    include ../../widgets/head.pug
        title General
body.option(dir="auto")
    include ../../widgets/links.pug
    +links('twitter')

    section.option-block
        .some-block.option-block
            h4(data-localise="__MSG_enable__") Enable
            input#disable-nitter(type="checkbox")

        .some-block.option-block
            h4(data-localise="__MSG_protocol__") Protocol
            select#protocol
                option(value="normal" data-localise="__MSG_normal__") Normal
                option(value="tor" data-localise="__MSG_tor__") Tor
                option(value="i2p" data-localise="__MSG_i2p__") I2P

        .some-block.option-block
            h4(data-localise="__MSG_bypassTwitter__") Bypass "Open in Twitter"
            input#bypass-watch-on-twitter(type="checkbox")

        .some-block.option-block
            h4(data-localise="__MSG_enableCustomNitter__") Enable Custom Settings (will use cookies)
            input#enable-twitter-custom-settings(type="checkbox")

        #nitter 
            .custom-settings
                .some-block.option-block
                    h2 Display 
                
                .some-block.option-block
                    h4(data-localise="__MSG_theme__") Theme
                    select.theme
                        option(value="Auto") Auto
                        option(value="Auto (Twitter)") Auto (Twitter)
                        option(value="Black") Black
                        option(value="Mastodon") Mastodon
                        option(value="Nitter") Nitter
                        option(value="Pleroma") Pleroma
                        option(value="Twitter") Twitter
                        option(value="Twitter Dark") Twitter Dark

                .some-block.option-block
                    h4(data-localise="__MSG_infiniteScroll__") Infinite scrolling (experimental, requires JavaScript)
                    input.infiniteScroll(type="checkbox")

                .some-block.option-block
                    h4(data-localise="__MSG_stickyProfile__") Make profile sidebar stick to top
                    input.stickyProfile(type="checkbox")

                .some-block.option-block
                    h4(data-localise="__MSG_bidiSupport__") Support bidirectional text (makes clicking on tweets harder)
                    input.bidiSupport(type="checkbox")

                .some-block.option-block
                    h4(data-localise="__MSG_hideTweetStats__") Hide tweet stats (replies, retweets, likes)
                    input.hideTweetStats(type="checkbox")

                .some-block.option-block
                    h4(data-localise="__MSG_hideBanner__") Hide profile banner
                    input.hideBanner(type="checkbox")

                .some-block.option-block
                    h4(data-localise="__MSG_hidePins__") Hide pinned tweets
                    input.hidePins(type="checkbox")

                .some-block.option-block
                    h4(data-localise="__MSG_hideReplies__") Hide tweet replies
                    input.hideReplies(type="checkbox")

                .some-block.option-block
                    h4(data-localise="__MSG_squareAvatars__") Square profile pictures
                    input.squareAvatars(type="checkbox")

                hr

                .some-block.option-block
                    h2 Media

                .some-block.option-block
                    h4(data-localise="__MSG_mp4Playback__") Enable mp4 video playback (only for gifs)
                    input.mp4Playback(type="checkbox")

                .some-block.option-block
                    h4(data-localise="__MSG_hlsPlayback__") Enable hls video streaming (requires JavaScript)
                    input.hlsPlayback(type="checkbox")

                .some-block.option-block
                    h4(data-localise="__MSG_proxyVideos__") Proxy video streaming through the server (might be slow)
                    input.proxyVideos(type="checkbox")

                .some-block.option-block
                    h4(data-localise="__MSG_muteVideos__") Mute videos by default
                    input.muteVideos(type="checkbox")

                .some-block.option-block
                    h4(data-localise="__MSG_autoplayGifs__") Autoplay gifs
                    input.autoplayGifs(type="checkbox")

            .normal
                include ../../widgets/instances.pug
                +instances('https://nitter.com')
            .tor
                include ../../widgets/instances.pug
                +instances('https://nitter.onion')
            .i2p
                include ../../widgets/instances.pug
                +instances('https://nitter.i2p')
            

    script(type="module" src="../init.js")
    script(type="module" src="./twitter.js")
    script(type="module" src="../../../assets/javascripts/localise.js")