mirror of https://github.com/Phantop/dotfiles
qute: dark mode with whitelist!
This commit is contained in:
parent
be4bda5326
commit
69b6673a91
|
@ -10,12 +10,14 @@ c.url.searchengines['y'] = "vid.puffyan.us/search?q={}"
|
||||||
|
|
||||||
c.url.open_base_url = True
|
c.url.open_base_url = True
|
||||||
c.content.fullscreen.window = True
|
c.content.fullscreen.window = True
|
||||||
|
c.colors.webpage.darkmode.enabled = True
|
||||||
|
|
||||||
c.tabs.show = "multiple"
|
c.tabs.show = "multiple"
|
||||||
c.confirm_quit = ["downloads"]
|
c.confirm_quit = ["downloads"]
|
||||||
c.qt.force_platformtheme = "gtk2"
|
c.qt.force_platformtheme = "gtk2"
|
||||||
c.content.cookies.accept = "no-3rdparty"
|
c.content.cookies.accept = "no-3rdparty"
|
||||||
c.colors.webpage.preferred_color_scheme = 'dark'
|
c.colors.webpage.preferred_color_scheme = 'dark'
|
||||||
|
c.colors.webpage.darkmode.policy.images = 'never'
|
||||||
|
|
||||||
c.aliases['re'] = 'restart'
|
c.aliases['re'] = 'restart'
|
||||||
c.aliases['mpv'] = 'spawn -mdv mpv --ytdl-raw-options=sub-lang=en'
|
c.aliases['mpv'] = 'spawn -mdv mpv --ytdl-raw-options=sub-lang=en'
|
||||||
|
|
|
@ -12,6 +12,5 @@ document.querySelectorAll('li.blurb').forEach(b=>{
|
||||||
b=document.createElement('a')
|
b=document.createElement('a')
|
||||||
c=document.getElementsByTagName('option')
|
c=document.getElementsByTagName('option')
|
||||||
i=document.getElementsByClassName('chapter')[2]
|
i=document.getElementsByClassName('chapter')[2]
|
||||||
b.innerText = 'Latest Chapter →'
|
|
||||||
b.href = c[c.length-1].value
|
b.href = c[c.length-1].value
|
||||||
i.parentElement.insertBefore(b, i)
|
i.parentElement.insertBefore(b, i).innerText = 'Latest Chapter →'
|
||||||
|
|
|
@ -3,9 +3,8 @@
|
||||||
// @homepage https://github.com/birb-naise/discord-simple-clear
|
// @homepage https://github.com/birb-naise/discord-simple-clear
|
||||||
// @include https://*.discord.com/*
|
// @include https://*.discord.com/*
|
||||||
// ==/UserScript==
|
// ==/UserScript==
|
||||||
const style = document.createElement('style')
|
document.head.appendChild(document.createElement('style')).innerHTML=`
|
||||||
document.head.appendChild(style)
|
.theme-dark, .theme-light {
|
||||||
style.innerHTML = `.theme-dark, .theme-light {
|
|
||||||
--background-primary: transparent;
|
--background-primary: transparent;
|
||||||
--background-secondary: transparent;
|
--background-secondary: transparent;
|
||||||
--background-secondary-alt: transparent;
|
--background-secondary-alt: transparent;
|
||||||
|
|
|
@ -2,6 +2,5 @@
|
||||||
// @name BetterTTV
|
// @name BetterTTV
|
||||||
// @include https://www.twitch.tv/*
|
// @include https://www.twitch.tv/*
|
||||||
// ==/UserScript==
|
// ==/UserScript==
|
||||||
s = document.createElement("script")
|
document.head.appendChild(document.createElement("script")).src=
|
||||||
s.src = "https://cdn.betterttv.net/betterttv.js"
|
"https://cdn.betterttv.net/betterttv.js"
|
||||||
document.head.appendChild(s)
|
|
||||||
|
|
|
@ -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);
|
Loading…
Reference in New Issue