aboutsummaryrefslogtreecommitdiff
path: root/config/qutebrowser/greasemonkey/#gh-pr.js#
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2021-09-14 13:34:19 +0530
committerAkshay Nair <phenax5@gmail.com>2021-09-14 13:34:19 +0530
commitf819aa3afea420925fe4c91a71a2756d5ed04b80 (patch)
tree51485da02eda97596faf55aec4881af8134b1e72 /config/qutebrowser/greasemonkey/#gh-pr.js#
parent994bda7f51d6967087832218d7d3613f37960c9f (diff)
downloadnixos-config-f819aa3afea420925fe4c91a71a2756d5ed04b80.tar.gz
nixos-config-f819aa3afea420925fe4c91a71a2756d5ed04b80.zip
qutebrowser config save
Diffstat (limited to 'config/qutebrowser/greasemonkey/#gh-pr.js#')
-rw-r--r--config/qutebrowser/greasemonkey/#gh-pr.js#27
1 files changed, 0 insertions, 27 deletions
diff --git a/config/qutebrowser/greasemonkey/#gh-pr.js# b/config/qutebrowser/greasemonkey/#gh-pr.js#
deleted file mode 100644
index 26d444a..0000000
--- a/config/qutebrowser/greasemonkey/#gh-pr.js#
+++ /dev/null
@@ -1,27 +0,0 @@
-// ==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]();
- }
-});
-