Add Keyboard Shortcut for Generic Next/Previous Page

Add CTRL+ArrowLeft and CTRL+ArrowRight for generic next/previous page. It will click the last found link/button whose text contain ">"/"»", "<"/"«", "Next", "Prev"/"Previous", or "Back".

Ниже показаны версии этого скрипта, в которых изменялся код. Показать все версии.

  • вер. 1.0.24 22.11.2025

    Add support for Shadow DOM Slots. e.g. MDN's Next/Previous link on search result page. I hate Shadow DOM! 💢🤬🤜🥾🔨🚀💥☢

  • вер. 1.0.23 12.10.2025

    Also check ARIA labels

  • вер. 1.0.22 25.07.2025

    Include similar meaning (alternative) characters for ">"/"<".

  • вер. 1.0.21 25.07.2025

    Update to make "«"/"»" to have lower priority over the rest conditions, since they're likely used for first/last page, rather than previous/next.

  • вер. 1.0.20 20.07.2025

    Update to use more relaxed rules to broaden the link selection

  • вер. 1.0.19 03.04.2025

    Update to override the same keyboard shortcuts which are defined by sites, when the navigation is successful

  • вер. 1.0.18 22.09.2023

    Add partial Shadow DOM support. Fixes problem in Bing Chat.

  • вер. 1.0.17 11.04.2023

    Make elements' ID and class names to also be checked for matches.

  • вер. 1.0.16 07.01.2022

    Bug fix for previous update

  • вер. 1.0.15 03.01.2022

    Includes button/link whose text contains « and »

  • вер. 1.0.14 23.12.2021

    Make link search to be more accurate

  • вер. 1.0.13 14.12.2021

    Search elements in backward order instead of forward.

  • вер. 1.0.12 14.12.2021

    Fixed: text content of some element types were not checked.

  • вер. 1.0.11 23.04.2021
  • вер. 1.0.10 17.12.2020 Changed search algorithm to avoid getting the wrong Next/Previous link such as slides at end of page
  • вер. 1.0.8 01.02.2020 Minor fix for previous update
  • вер. 1.0.7 01.02.2020 Prioritize next/previous link HTML metadata if specified
  • вер. 1.0.6 20.12.2019 Added workaround to avoid choosing carousel link. Fix for Amazon search result page.
  • вер. 1.0.5 12.12.2019 Made keyboard shortcut work on buttons too (e.g. on non JavaScript version of DuckDuckGo search result page)
  • вер. 1.0.4 15.01.2019 Made to match links if they contain "Next" at the end of the text (just like when matching the "Prev" or "Previous" links). Also match text in the links' REL attribute, if any.
  • вер. 1.0.3 27.02.2017 Removed debugging code.
  • вер. 1.0.2 26.02.2017 Fixed keyboard shortcut fired when the active element is an INPUT/TEXTAREA element, or any element whose content is currently editable. i.e. restore navigation keyboard shortcuts for text editing.
  • вер. 1.0 25.02.2017