Last active 1 month ago

veryroundbird's Avatar veryroundbird revised this gist 1 month ago. Go to revision

No changes

veryroundbird's Avatar veryroundbird revised this gist 1 month ago. Go to revision

1 file changed, 19 insertions

bondshortcut.user.js(file created)

@@ -0,0 +1,19 @@
1 + // ==UserScript==
2 + // @name Press B to Bond
3 + // @namespace http://veryroundbird.house
4 + // @version 1.0
5 + // @description bind the bond button to the 'b' key so that i get less RSI
6 + // @author Carly Smallbird
7 + // @match https://*.flightrising.com/dragon/*
8 + // @icon https://www.google.com/s2/favicons?sz=64&domain=flightrising.com
9 + // @grant none
10 + // ==/UserScript==
11 +
12 + (function() {
13 + const bondButton = document.querySelector('#dragon-profile-button-bond');
14 + document.addEventListener('keydown', function(e) {
15 + if (e.keycode == 66) {
16 + bondButton.dispatchEvent('click');
17 + }
18 + });
19 + })();
Newer Older