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 starts/ends with e.g. "Next", "Prev", "Back", or "Previous".

These are all versions of this script. Show only the versions where the code changed.

  • v1.0.16 2022-01-07

    Bug fix for previous update

  • v1.0.15 2022-01-03

    Includes button/link whose text contains « and »

  • v1.0.14 2021-12-23

    Make link search to be more accurate

  • v1.0.13 2021-12-23

    Made link search to be more accurate

  • v1.0.13 2021-12-14

    Search elements in backward order instead of forward.

  • v1.0.12 2021-12-14

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

  • v1.0.11 2021-04-23
  • v1.0.10 2020-12-17 Changed search algorithm to avoid getting the wrong Next/Previous link such as slides at end of page
  • v1.0.8 2020-02-01 Minor fix for previous update
  • v1.0.7 2020-02-01 Prioritize next/previous link HTML metadata if specified
  • v1.0.6 2019-12-20 Added workaround to avoid choosing carousel link. Fix for Amazon search result page.
  • v1.0.5 2019-12-12 Made keyboard shortcut work on buttons too (e.g. on non JavaScript version of DuckDuckGo search result page)
  • v1.0.4 2019-01-15 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.
  • v1.0.3 2017-02-27 Removed debugging code.
  • v1.0.2 2017-02-26 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.
  • v1.0 2017-02-25