From 0831b2ef1b60b3b05fb021002ee05154dd4c5cad Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Tue, 9 Apr 2024 11:51:27 -0700 Subject: [PATCH] [Surfingkeys] Add keybinding for Phanpy to load new posts --- surfingkeys/surfingkeys.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/surfingkeys/surfingkeys.js b/surfingkeys/surfingkeys.js index 65aa463..2cbb941 100644 --- a/surfingkeys/surfingkeys.js +++ b/surfingkeys/surfingkeys.js @@ -26,6 +26,10 @@ api.mapkey('', '#7Open commands', function() { api.Front.openOmnibar({type: "Commands"}); }); +api.mapkey('g', '#14Load new posts', function() { + document.querySelector('button.updates-button').click(); +}, { domain: /phanpy\.social/i }); + api.mapkey('cc', '#13Capture current page', orgCapture); api.map('', 'h');