diff options
| author | Akshay Nair <phenax5@gmail.com> | 2021-02-17 23:30:27 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2021-02-17 23:30:27 +0530 |
| commit | 3c386f0ad6a6b538e5042437cab16d8fc4c59860 (patch) | |
| tree | a80fa9097b9b33072398b3db4aacabe239bd0ca8 | |
| parent | 24589a4689ec7c4a3c722daeece04d76dd5b7f12 (diff) | |
| download | nixos-config-3c386f0ad6a6b538e5042437cab16d8fc4c59860.tar.gz nixos-config-3c386f0ad6a6b538e5042437cab16d8fc4c59860.zip | |
Quotebrowser config change
| -rw-r--r-- | config/qutebrowser/greasemonkey/#gh-pr.js# | 27 | ||||
| -rw-r--r-- | config/qutebrowser/security.py | 2 |
2 files changed, 28 insertions, 1 deletions
diff --git a/config/qutebrowser/greasemonkey/#gh-pr.js# b/config/qutebrowser/greasemonkey/#gh-pr.js# new file mode 100644 index 0000000..26d444a --- /dev/null +++ b/config/qutebrowser/greasemonkey/#gh-pr.js# @@ -0,0 +1,27 @@ +// ==UserScript== +// @name Github PR helper +// @namespace phenax.github.io +// @version 0.0.0 +// @description Github PR helper +// @author Akshay Nair +// @match *://github.com/*/pull/*/files +// ==/UserScript== + +const keys = { + n: () => document.querySelector('.js-reviewed-toggle:not(.js-reviewed-file)').click(), + N: () => Array.from(document.querySelectorAll('.js-reviewed-file')).slice(-1)[0].click(), + //j: () => { + //const $el = document.querySelector('.js-reviewed-toggle:not(.js-reviewed-file)'); + //if ($el) { + + //} + //}, +}; +w +document.addEventListener('keydown', (e) => { + console.log(e.key, e.ctrlKey); + if (keys[e.key] && e.ctrlKey) { + keys[e.key](); + } +}); + diff --git a/config/qutebrowser/security.py b/config/qutebrowser/security.py index f503b6d..5e8d026 100644 --- a/config/qutebrowser/security.py +++ b/config/qutebrowser/security.py @@ -38,7 +38,7 @@ c.content.geolocation = 'ask' c.content.headers.do_not_track = True c.content.headers.referer = 'never' c.content.headers.user_agent = random_useragent() -c.content.host_blocking.enabled = True +c.content.blocking.enabled = True c.content.media.audio_capture = 'ask' c.content.media.video_capture = 'ask' c.content.ssl_strict = 'ask' |
