From e85eb98480d0c7af950859e95819901a20923fe7 Mon Sep 17 00:00:00 2001 From: Bradley Taunt Date: Fri, 31 May 2024 14:53:12 -0400 Subject: Begin porting over wiki pages --- wiki/qutebrowser.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 wiki/qutebrowser.md (limited to 'wiki/qutebrowser.md') 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) -- cgit v1.2.3-54-g00ecf