Greasy Fork is available in English.

YAFGC hotkey navigation

Userscript for hotkey navigation on yafgc.net webcomic

  1. // ==UserScript==
  2. // @name YAFGC hotkey navigation
  3. // @include http*://*yafgc.net*
  4. // @icon http://yafgc.net/favicon.ico
  5. // @grant none
  6. // @run-at document-end
  7. // @description Userscript for hotkey navigation on yafgc.net webcomic
  8. // @version 0.0.1.20170710072319
  9. // @namespace https://greasyfork.org/users/7568
  10. // ==/UserScript==
  11.  
  12. // Firefox
  13. // << Shift+Alt+P and Shift+Alt+N >>
  14.  
  15. // Chrome, Opera, Safari
  16. // << Alt+P and Alt+N >>
  17.  
  18. var prev = document.getElementsByClassName("navi-prev")[0],
  19. next = document.getElementsByClassName("navi-next")[0];
  20.  
  21. prev.accessKey = "s";
  22. next.accessKey = "n";