diff options
author | bt <bt@web> | 2023-12-25 13:51:19 -0500 |
---|---|---|
committer | IkiWiki <ikiwiki.info> | 2023-12-25 13:51:19 -0500 |
commit | 7011bd01f5005583283dcc755e4c8cc5dce4d3b7 (patch) | |
tree | 3e548f777f4a850da1690d06efa70021f9e6b1fd /wiki | |
parent | d2f757e451471864e68322024f40c761d7237a54 (diff) |
Diffstat (limited to 'wiki')
-rw-r--r-- | wiki/qutebrowser.mdwn | 26 |
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) |