2021-11-15 22:07:45 +01:00
|
|
|
# qutebrowser
|
|
|
|
|
|
|
|
## General
|
|
|
|
|
|
|
|
Qutebrowser is very dotfiles friendly, nonetheless there are some features which require manual intervention to work correctly at initial setup.
|
|
|
|
|
|
|
|
## Ad-blocking
|
|
|
|
|
|
|
|
Do not forget to install `python-adblock` if you want brave-like adblocking. To have domain blocking and brave-like adblocking:
|
|
|
|
```
|
|
|
|
:set content.blocking.method both
|
|
|
|
:adblock-update
|
|
|
|
```
|
|
|
|
|
|
|
|
### Automatic adblock list updates:
|
|
|
|
|
|
|
|
Adding to your crontab at whatever interval you wish:
|
|
|
|
```sh
|
2021-11-15 22:17:59 +01:00
|
|
|
qutebrowser --nowindow ':adblock-update;;later 10000 download-clear'
|
2021-11-15 22:07:45 +01:00
|
|
|
```
|
|
|
|
will update the adblock lists without starting a qutebrowser window.
|
|
|
|
|
2022-05-05 15:20:38 +02:00
|
|
|
## Setting spellcheck languages
|
|
|
|
This is a bit more involved since it requires a script that can only be found in the source code of qutebrowser.
|
|
|
|
1. Download the qutebrowser source code: `git clone https://github.com/qutebrowser/qutebrowser`
|
|
|
|
2. `cd qutebrowser`
|
|
|
|
3. Install the wanted languages e.g. `python -m scripts.dictcli install en-GB`
|
|
|
|
4. set spellcheck to the wanted languages in qutebrowser.
|
|
|
|
Qutebrowser can also use multiple languages by parsing a list:
|
|
|
|
`:set spellcheck.languages '["en-GB", "de-DE"]'`
|
|
|
|
|
2021-11-15 22:07:45 +01:00
|
|
|
## Greasemonkey scripts
|
|
|
|
|
2022-03-13 14:04:23 +01:00
|
|
|
To add scripts such as 4chanX to qutebrowser add the Js file to `${XDG_DATA_HOME:-$HOME/.local/share}/qutebrowser/greasemonkey`.
|
|
|
|
|
2022-03-13 14:05:54 +01:00
|
|
|
### 4chanX
|
|
|
|
|
2022-03-13 14:04:23 +01:00
|
|
|
For 4chanX this would be:
|
2021-11-15 22:07:45 +01:00
|
|
|
|
|
|
|
```sh
|
|
|
|
wget -P ${XDG_DATA_HOME:-$HOME/.local/share}/qutebrowser/greasemonkey https://www.4chan-x.net/builds/4chan-X.user.js
|
|
|
|
```
|
|
|
|
followed by a `:greasemonkey-reload` in qutebrowser to activate the newly added Java scripts.
|
2022-03-13 14:04:23 +01:00
|
|
|
|
2022-03-13 14:05:54 +01:00
|
|
|
### Skip Youtube Ads
|
|
|
|
|
2022-03-13 14:04:23 +01:00
|
|
|
Automatically mute, speed up (at least 10x) and skip video ads on youtube.
|
|
|
|
There are multiple versions out there that try to accomplish the same thing.
|
|
|
|
Various versions can be found in [this github issue thread](https://github.com/qutebrowser/qutebrowser/issues/6480#issuecomment-876759237).
|
|
|
|
For me personally version 1.0.0 seems to work best.
|
|
|
|
Thus, create a file in `${XDG_DATA_HOME:-$HOME/.local/share}/qutebrowser/greasemonkey` with the following content:
|
|
|
|
|
|
|
|
```js
|
|
|
|
// ==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)
|
|
|
|
```
|
|
|
|
followed by a `:greasemonkey-reload` in qutebrowser.
|