summaryrefslogtreecommitdiff
path: root/wiki/qutebrowser.mdwn
blob: 1119d45b11eaa2f12f4dee2a181e1db771aa4413 (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
This page contains all the custom configuration for qutebrowser.

### Greasemonkey

All of these scripts should be added under `~/.local/share/qutebrowser/greasemonkey/`. Then be sure to run the proper command within qutebrowser: `:greasemonkey-reload`

#### Auto Skip YouTube Ads

    // ==UserScript==
    // @name         Auto Skip YouTube Ads 
    // @version      1.0.0
    // @description  Speed up and skip YouTube ads automatically 
    // @author       jso8910
    // @match        *://*.youtube.com/*
    // @exclude      *://*.youtube.com/subscribe_embed?*
    // ==/UserScript==
    setInterval(() => {
        const btn = document.querySelector('.videoAdUiSkipButton,.ytp-ad-skip-button')
        if (btn) {
            btn.click()
        }
        const ad = [...document.querySelectorAll('.ad-showing')][0];
        if (ad) {
            document.querySelector('video').playbackRate = 10;
        }
    }, 50)