MediaWiki:Gadget-ep-nav.js: Difference between revisions

From Down Gilead Lane Wiki
Jump to navigation Jump to search
No edit summary
Tag: Manual revert
 
(No difference)

Latest revision as of 22:55, 4 June 2022

/* Gadget-ep-nav.js - Episode Navigation Gadget
 * Adds Alt-9 and Alt-0 as shortcuts for navigation on episode pages.
 */

$( function () {
    try { document.querySelectorAll('.prevLink > a')[0].setAttribute("accesskey", "9"); }
    finally { document.querySelectorAll('.nextLink > a')[0].setAttribute("accesskey", "0"); }
} );