bondshortcut.user.js
· 650 B · JavaScript
Raw
// ==UserScript==
// @name Press B to Bond
// @namespace http://veryroundbird.house
// @version 1.0
// @description bind the bond button to the 'b' key so that i get less RSI
// @author Carly Smallbird
// @match https://*.flightrising.com/dragon/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=flightrising.com
// @grant none
// ==/UserScript==
(function() {
const bondButton = document.querySelector('#dragon-profile-button-bond');
document.addEventListener('keydown', function(e) {
if (e.keycode == 66) {
bondButton.dispatchEvent('click');
}
});
})();
| 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 | })(); |