Evoworld.io Friend Menu Keybinds

A keybinds for the friend menu, press "F" to open and "C" to close.

  1. // ==UserScript==
  2. // @name Evoworld.io Friend Menu Keybinds
  3. // @namespace http://tampermonkey.net/
  4. // @description A keybinds for the friend menu, press "F" to open and "C" to close.
  5. // @author kingbelisariusix
  6. // @match https://evoworld.io/
  7. // @icon https://www.google.com/s2/favicons?domain=evoworld.io
  8. // @grant none
  9. // @license MIT
  10. // @version 1.0
  11. // ==/UserScript==
  12.  
  13. function openFriendMenu() {
  14. openFriends();
  15. }
  16.  
  17. function closeFriendMenu() {
  18. closeFriends();
  19. }
  20.  
  21. document.addEventListener('keydown', function(event) {
  22. if (event.key === 'f' || event.key === 'F') {
  23. openFriendMenu();
  24. } else if (event.key === 'c' || event.key === 'C') {
  25. closeFriendMenu();
  26. }
  27. });