summaryrefslogtreecommitdiff
path: root/wiki/qutebrowser.mdwn
diff options
context:
space:
mode:
Diffstat (limited to 'wiki/qutebrowser.mdwn')
-rw-r--r--wiki/qutebrowser.mdwn26
1 files changed, 26 insertions, 0 deletions
diff --git a/wiki/qutebrowser.mdwn b/wiki/qutebrowser.mdwn
new file mode 100644
index 0000000..1119d45
--- /dev/null
+++ b/wiki/qutebrowser.mdwn
@@ -0,0 +1,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)