aboutsummaryrefslogtreecommitdiff
path: root/wiki/qutebrowser.md
diff options
context:
space:
mode:
authorBradley Taunt <bt@btxx.org>2024-05-31 14:53:12 -0400
committerBradley Taunt <bt@btxx.org>2024-05-31 14:53:12 -0400
commite85eb98480d0c7af950859e95819901a20923fe7 (patch)
tree5fc5ab9dd9608cfc676a475297e84bfb1de3f114 /wiki/qutebrowser.md
parent8f28fc58d5fe68775fbe552eb172cbb4ad8614b1 (diff)
Begin porting over wiki pages
Diffstat (limited to 'wiki/qutebrowser.md')
-rw-r--r--wiki/qutebrowser.md32
1 files changed, 32 insertions, 0 deletions
diff --git a/wiki/qutebrowser.md b/wiki/qutebrowser.md
new file mode 100644
index 0000000..41effd0
--- /dev/null
+++ b/wiki/qutebrowser.md
@@ -0,0 +1,32 @@
+---
+layout: page
+title: Qutebrowser
+permalink: /wiki/qutebrowser
+---
+
+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)