summaryrefslogtreecommitdiff
path: root/.config/qutebrowser
diff options
context:
space:
mode:
Diffstat (limited to '.config/qutebrowser')
-rw-r--r--.config/qutebrowser/bookmarks/urls8
-rw-r--r--.config/qutebrowser/config.py68
-rw-r--r--.config/qutebrowser/greasemonkey/youtube-to-invidious.js2
-rw-r--r--.config/qutebrowser/quickmarks5
-rw-r--r--.config/qutebrowser/userscripts/youtube-to-invidious.js11
5 files changed, 39 insertions, 55 deletions
diff --git a/.config/qutebrowser/bookmarks/urls b/.config/qutebrowser/bookmarks/urls
index 4146274..ed1ac30 100644
--- a/.config/qutebrowser/bookmarks/urls
+++ b/.config/qutebrowser/bookmarks/urls
@@ -134,3 +134,11 @@ https://www.tradingview.com/chart/1a1NjVtp/ AVIR 32.16 ▲ +1.87% Unnamed
https://wandererfinancial.com/trade-talk/ Trade Talk - Wanderer Financial
https://wandererfinancial.com/9-29-21-todays-market/ 9/29/21 Today's Market - Wanderer Financial
https://www.summitpost.org/ Climbing, Hiking, Mountaineering : SummitPost
+https://manage.buyvm.net/login Stallion
+https://client.schwab.com/Areas/Trade/Stocks/Entry.aspx? Charles Schwab Client Center
+https://www.aza.org/find-a-zoo-or-aquarium Find a Zoo or Aquarium Near Me | AZA
+https://darksitefinder.com/maps/world.html#4/57.42/224.65 Light Pollution Map - DarkSiteFinder.com
+http://192.168.0.1/index.html#/index 4G LTE Mobile Hotspot
+https://live.luxagraf.net/admin/locations/location/add/ Add location | Django site admin
+https://client.schwab.com/Areas/Trade/Allinone/Index.aspx# All in One Trade | Charles Schwab
+https://wandererfinancial.com/4-4-22-todays-market/ 4/4/22 Today's Market - Wanderer Financial
diff --git a/.config/qutebrowser/config.py b/.config/qutebrowser/config.py
index 51f4a0b..27be7d2 100644
--- a/.config/qutebrowser/config.py
+++ b/.config/qutebrowser/config.py
@@ -21,14 +21,15 @@ c.tabs.background = True
c.tabs.position = "top"
c.content.autoplay = False
-c.editor.command = ['alacritty', 'nvim', '{}']
+c.editor.command = ['foot', 'nvim', '{}']
c.url.default_page = "about:blank"
# searches
-c.url.searchengines['DEFAULT'] = 'https://www.startpage.com/rvd/search?query={}&language=auto'
+#c.url.searchengines['DEFAULT'] = 'https://www.startpage.com/rvd/search?query={}&language=auto'
# tor
#c.url.searchengines['DEFAULT'] = 'https://3g2upl4pq6kufc4m.onion/?q={}'
-c.url.searchengines['s'] = 'https://duckduckgo.com/?q={}'
+c.url.searchengines['DEFAULT'] = 'https://html.duckduckgo.com/html?q={}'
+c.url.searchengines['DEFAULT'] = 'https://duckduckgo.com/?q={}'
c.url.searchengines['g'] = 'http://www.google.com/search?hl=en&source=hp&ie=ISO-8859-l&q={}'
c.url.searchengines['a'] = 'https://wiki.archlinux.org/?search={}'
c.url.searchengines['y'] = 'https://www.youtube.com/results?search_query={}'
@@ -42,30 +43,12 @@ c.url.searchengines['w'] = 'https://www.google.com/search?q={}+site%3Awired.com'
c.content.javascript.enabled = False
# JS is okay for some sites:
-js_whitelist = [
-"*://localhost/*",
-"*://127.0.0.1/*",
-"https://live.luxagraf.net/*",
-"https://cloud.luxagraf.net/*",
-"https://luxagraf.net/*",
-"*://github.com/*",
-"*://gitlab.com/*",
-"*://*.youtube.com/*",
-"*://*.tastyworks.com/*",
-"*://wandererfinancial.com/*",
-"*://*.tradingview.com/*",
-"*://translate.google.com/*",
-"*://*.schoolsfirstfcu.com/*",
-"*://www.ssec.wisc.edu/*",
-"*://bumfuzzle.com/*",
-"*://pmags.com/*",
-"*://*.tastyworks.com/*",
-"https://discuss.pixls.us/*",
-"https://www.startpage.com/*",
-"https://*.schwab.com/*",
-"https://*.hyvor.com/*",
-"https://ecosophia.dreamwidth.org/*",
-]
+private_whitelist = os.path.expanduser("~/.config/qutebrowser/whitelists/js")
+if os.path.exists(private_whitelist):
+ with open(private_whitelist) as f:
+ js_whitelist = filter(lambda l: bool(l), f.read().split("\n"))
+
+
for site in js_whitelist:
with config.pattern(site) as p:
p.content.javascript.enabled = True
@@ -107,6 +90,7 @@ config.unbind('<Ctrl+h>')
# Userscripts
# call readability on page
config.bind (',r', 'spawn --userscript myread.py', mode='normal')
+config.bind (',c', 'spawn --userscript camel.py', mode='normal')
#download current or hinted video
config.bind(',y', 'spawn --userscript youtube-dl')
@@ -120,32 +104,32 @@ config.bind(',yv', 'spawn --detach mpv --force-window yes {url}')
config.bind (',f', 'open {primary}')
config.bind (',F', 'open --tab {primary}')
-config.bind (',e', 'open-editor')
+config.bind (',e', 'edit-text')
# clear cookies
config.bind('co', 'spawn bisc', mode='normal')
#config.set("colors.webpage.darkmode.enabled", True)
# save bookmark to luxagraf
-config.bind(',s', "jseval --quiet if(document.getSelection){s=document.getSelection();}else{s='';};document.location='https://live.luxagraf.net/admin/links/link/add?&url='+encodeURIComponent(location.href)+'&description='+encodeURIComponent(s)+'&title='+encodeURIComponent(document.title);")
+config.bind(',s', "jseval if(document.getSelection){s=document.getSelection();}else{s='';};document.location='https://live.luxagraf.net/admin/links/link/add/?url='+encodeURIComponent(location.href)+'&description='+encodeURIComponent(s)+'&title='+encodeURIComponent(document.title);")
import sys, os
#sys.path.append(os.path.join(sys.path[0], "jblock"))
#config.source("jblock/jblock/integrations/qutebrowser.py")
-config.set(
- "content.blocking.hosts.lists",
- [
- "https://easylist.to/easylist/fanboy-annoyance.txt",
- "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/filters.txt",
- "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/annoyances.txt",
- "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/badware.txt",
- "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/privacy.txt",
- "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/resource-abuse.txt",
- "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/unbreak.txt",
- "https://www.malwaredomainlist.com/hostslist/hosts.txt",
- ],
-)
+#config.set(
+# "content.blocking.hosts.lists",
+# [
+# "https://easylist.to/easylist/fanboy-annoyance.txt",
+# "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/filters.txt",
+# "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/annoyances.txt",
+# "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/badware.txt",
+# "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/privacy.txt",
+# "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/resource-abuse.txt",
+# "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/unbreak.txt",
+# "https://www.malwaredomainlist.com/hostslist/hosts.txt",
+# ],
+#)
#config.set(
# "content.blocking.whitelist'",
diff --git a/.config/qutebrowser/greasemonkey/youtube-to-invidious.js b/.config/qutebrowser/greasemonkey/youtube-to-invidious.js
index b51c506..b61f20c 100644
--- a/.config/qutebrowser/greasemonkey/youtube-to-invidious.js
+++ b/.config/qutebrowser/greasemonkey/youtube-to-invidious.js
@@ -8,4 +8,4 @@
// @run-at document-start
// ==/UserScript==
-location.href=location.href.replace("www.youtube.com","invidious.fdn.fr");
+location.href=location.href.replace("www.youtube.com","invidio.xamh.de");
diff --git a/.config/qutebrowser/quickmarks b/.config/qutebrowser/quickmarks
index 4b83a6f..d9fb33d 100644
--- a/.config/qutebrowser/quickmarks
+++ b/.config/qutebrowser/quickmarks
@@ -1,9 +1,12 @@
ad https://live.luxagraf.net/admin/
tr https://live.luxagraf.net/trading/
base https://wandererfinancial.com/basecamp/
+pic https://live.luxagraf.net/admin/media/luximage/add/
li https://live.luxagraf.net/
lx https://luxagraf.net/
-dev http://10.87.144.224:8000/
+dev http://10.157.15.149:8000/
+devlbh http://10.157.15.227:8000/
+devccg http://10.157.15.137:8000/
stats https://awstats.luxagraf.net/cgi-bin/awstats.pl?config=luxagraf.net
wind https://earth.nullschool.net/
weather http://www.ssec.wisc.edu/data/us_comp/large
diff --git a/.config/qutebrowser/userscripts/youtube-to-invidious.js b/.config/qutebrowser/userscripts/youtube-to-invidious.js
deleted file mode 100644
index b51c506..0000000
--- a/.config/qutebrowser/userscripts/youtube-to-invidious.js
+++ /dev/null
@@ -1,11 +0,0 @@
-// ==UserScript==
-// @name YouTube to Invidious redirector
-// @namespace lxf userscripts
-// @match http://youtube.com/*
-// @match https://youtube.com/*
-// @match http://www.youtube.com/*
-// @match https://www.youtube.com/*
-// @run-at document-start
-// ==/UserScript==
-
-location.href=location.href.replace("www.youtube.com","invidious.fdn.fr");