From 7011bd01f5005583283dcc755e4c8cc5dce4d3b7 Mon Sep 17 00:00:00 2001 From: bt Date: Mon, 25 Dec 2023 13:51:19 -0500 Subject: --- wiki/qutebrowser.mdwn | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 wiki/qutebrowser.mdwn 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) -- cgit v1.2.3-54-g00ecf