AutoYADM commit: 2025-06-01 22:54:18
This commit is contained in:
parent
301e318c1e
commit
83f8525ea0
2 changed files with 35 additions and 0 deletions
|
@ -8,6 +8,22 @@ c.new_instance_open_target = "tab-bg"
|
||||||
c.tabs.background = True
|
c.tabs.background = True
|
||||||
c.content.blocking.enabled = True
|
c.content.blocking.enabled = True
|
||||||
c.content.blocking.method = "adblock"
|
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
|
# searches
|
||||||
c.url.searchengines["DEFAULT"] = "https://duckduckgo.com/q={}"
|
c.url.searchengines["DEFAULT"] = "https://duckduckgo.com/q={}"
|
||||||
|
|
19
.config/qutebrowser/greasemonkey/yt-ads.js
Normal file
19
.config/qutebrowser/greasemonkey/yt-ads.js
Normal file
|
@ -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);
|
Loading…
Add table
Add a link
Reference in a new issue