qute: dark mode with whitelist!

This commit is contained in:
Phantop 2022-01-13 10:36:39 -05:00
parent be4bda5326
commit 69b6673a91
5 changed files with 19 additions and 8 deletions

View File

@ -10,12 +10,14 @@ c.url.searchengines['y'] = "vid.puffyan.us/search?q={}"
c.url.open_base_url = True
c.content.fullscreen.window = True
c.colors.webpage.darkmode.enabled = True
c.tabs.show = "multiple"
c.confirm_quit = ["downloads"]
c.qt.force_platformtheme = "gtk2"
c.content.cookies.accept = "no-3rdparty"
c.colors.webpage.preferred_color_scheme = 'dark'
c.colors.webpage.darkmode.policy.images = 'never'
c.aliases['re'] = 'restart'
c.aliases['mpv'] = 'spawn -mdv mpv --ytdl-raw-options=sub-lang=en'

View File

@ -12,6 +12,5 @@ document.querySelectorAll('li.blurb').forEach(b=>{
b=document.createElement('a')
c=document.getElementsByTagName('option')
i=document.getElementsByClassName('chapter')[2]
b.innerText = 'Latest Chapter →'
b.href = c[c.length-1].value
i.parentElement.insertBefore(b, i)
i.parentElement.insertBefore(b, i).innerText = 'Latest Chapter →'

View File

@ -3,9 +3,8 @@
// @homepage https://github.com/birb-naise/discord-simple-clear
// @include https://*.discord.com/*
// ==/UserScript==
const style = document.createElement('style')
document.head.appendChild(style)
style.innerHTML = `.theme-dark, .theme-light {
document.head.appendChild(document.createElement('style')).innerHTML=`
.theme-dark, .theme-light {
--background-primary: transparent;
--background-secondary: transparent;
--background-secondary-alt: transparent;

View File

@ -2,6 +2,5 @@
// @name BetterTTV
// @include https://www.twitch.tv/*
// ==/UserScript==
s = document.createElement("script")
s.src = "https://cdn.betterttv.net/betterttv.js"
document.head.appendChild(s)
document.head.appendChild(document.createElement("script")).src=
"https://cdn.betterttv.net/betterttv.js"

View File

@ -0,0 +1,12 @@
// ==UserScript==
// @match
// @match https://*.discord.com/*
// @match https://mail.tutanota.com/*
// @match https://teddit.net/*
// @match https://archiveofourown.org/*
// @match https://drop.lol/*
// ==/UserScript==
const meta = document.createElement('meta');
meta.name = "color-scheme";
meta.content = "dark light";
document.head.appendChild(meta);