Last active 1 month ago

Revision a55d8d1ea4277742d7e88305d7285f930d754f85

bondshortcut.user.js Raw
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})();