From 83f8525ea04054e59e5613d87e7ece2fa10d0ae7 Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Sun, 1 Jun 2025 22:54:18 -0400 Subject: [PATCH] AutoYADM commit: 2025-06-01 22:54:18 --- .config/qutebrowser/config.py | 16 ++++++++++++++++ .config/qutebrowser/greasemonkey/yt-ads.js | 19 +++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 .config/qutebrowser/greasemonkey/yt-ads.js diff --git a/.config/qutebrowser/config.py b/.config/qutebrowser/config.py index 09b174d8..92f9966b 100644 --- a/.config/qutebrowser/config.py +++ b/.config/qutebrowser/config.py @@ -8,6 +8,22 @@ c.new_instance_open_target = "tab-bg" c.tabs.background = True c.content.blocking.enabled = True c.content.blocking.method = "adblock" +c.auto_save.session = True +c.completion.open_categories = [ + "searchengines", + "quickmarks", + "bookmarks", + "history", + "filesystem", +] + +c.hints.chars = "tnserigmao" + +# dark mode +c.colors.webpage.darkmode.enabled = True +c.colors.webpage.darkmode.algorithm = "lightness-cielab" +c.colors.webpage.darkmode.policy.images = "never" +config.set("colors.webpage.darkmode.enabled", False, "file://*") # searches c.url.searchengines["DEFAULT"] = "https://duckduckgo.com/q={}" diff --git a/.config/qutebrowser/greasemonkey/yt-ads.js b/.config/qutebrowser/greasemonkey/yt-ads.js new file mode 100644 index 00000000..932fd29f --- /dev/null +++ b/.config/qutebrowser/greasemonkey/yt-ads.js @@ -0,0 +1,19 @@ +// ==UserScript== +// @name Auto Skip YouTube Ads +// @version 1.1.0 +// @description Speed up and skip YouTube ads automatically +// @author jso8910 and others +// @match *://*.youtube.com/* +// ==/UserScript== + + +document.addEventListener('load', () => { + const btn = document.querySelector('.videoAdUiSkipButton,.ytp-ad-skip-button-modern') + if (btn) { + btn.click() + } + const ad = [...document.querySelectorAll('.ad-showing')][0]; + if (ad) { + document.querySelector('video').currentTime = 9999999999; + } +}, true);