Related Links Pager

Navigate sideways! When you click a link, related links on the current page are carried with you. They can be accessed from a pager on the target page, so you won't have to go back in your browser.

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

  • v1.4.15 01.09.2023.

    Add option useTagsInXPath; clean up some unwanted classes

  • v1.4.14 01.02.2023. Disable the use of className on twitch, to ensure the script works on clips page, Expanded comments
  • v1.4.14 15.11.2022. Add option ignoreItalicsInXPath for Wikipedia, Fix: Detect g class even when other classes are present
  • v1.4.12 13.04.2022. Bugfix: splice() -> slice()
  • v1.4.11 23.01.2021. Hide when YouTube is fullscreen, but still allow hover
  • v1.4.10 22.08.2020. Fix license for OpenUserJS (GPL -> AGPL-3.0-or-later, tx Marti)
  • v1.4.9 22.08.2020. Fix license for OpenUserJS (GPL-3.0 -> GPL)
  • v1.4.8 22.08.2020. Fix license for OUJS
  • v1.4.7 22.08.2020. Version bump for OUJS
  • v1.4.6 21.08.2020. Version bump for OUJS
  • v1.4.5 04.08.2020. Better handling of textless links and replacing matches with better matches
  • v1.4.4 18.06.2020. Do not show (n related links) in the tooltip by default
  • v1.4.3 26.04.2020. Only worry about complaining sites when passing by hash
  • v1.4.2 22.02.2020. Fix textContent for Google's new HTML arrangement
  • v1.4.1 30.01.2020. Fix for related links at different depths on Google
  • v1.4.0 13.12.2019. Only skip hash URLs if we are using the hash to pass siblings
  • v1.3.31 08.11.2019. Extra fix to ensure Google's first result is grouped
  • v1.3.30 02.07.2019. Hide when fullscreen on YouTube
  • v1.3.29 27.02.2019. Increase size of prev/next buttons, to make them easier to hit
  • v1.3.28 25.12.2018. Force Google's first suggested link into the same group as the other results
  • v1.3.27 04.10.2018. Fix styling for Google's new <h3> link titles
  • v1.3.26 27.09.2018. Get RelatedLinksPager working without #siblings in Firefox
  • v1.3.25 07.07.2018. A dashed line looks better at more resolutions than a dotted line
  • v1.3.24 27.06.2018. Use a dotted underline instead of background to highlight related links
  • v1.3.23 27.06.2018. Remove the visiting-link highlight after a small delay
  • v1.3.22 08.06.2018.
  • v1.3.22 23.05.2018. Enhance discoverability of rollup/down feature
  • v1.3.21 23.05.2018. Reset CSS props for close button (font problem on some sites)
  • v1.3.20 23.05.2018. Reset font for Related Links Pager
  • v1.3.19 13.05.2018. Become less transparent when idle, now that text is hidden
  • v1.3.18 12.05.2018. Bring back the purple highlight when clicking a group, Refactor how styles are added, Do not run in iframes
  • v1.3.18 12.05.2018. Do not show host text for missing favicons, Use times symbol for close button (maybe more consistent?) Conflicts: other/gm_scripts/Related_Links_Pager/Related_Links_Pager.user.js, Don't set any image title, users will hover the link to see the domain, Handle overflow properly, Try to improve favicon alignment on Wikipedia, Bring back the purple highlight when clicking a group, Refactor how styles are added, Do not run in iframes
  • v1.3.12 09.05.2018. Favicon should always take the same size space, even if missing
  • v1.3.10 08.05.2018. Use a different X (previous didn't work well on Mac)
  • v1.3.9 05.05.2018.
  • v1.3.9 04.05.2018. FIX groupLinksByClass had been broken by highlight classes
  • v1.3.8 03.05.2018. Only build new pager after click if the URL changed, Add and remove classes instead of changing element style directly, Fix some (but not all) linter errors, Make Prev/Next buttons larger with text; trim tooltip titles; minor title layout, Improve the close button with a unicode cross
  • v1.3.7 02.05.2018. Make title margin symmetrical
  • v1.3.6 02.05.2018. Fix squashed favicon bug, Right-align numbers, Show favicon for current link too, Always use the sans-serif font, Bump version number, Styling improvements, Various styling changes, Bump version number
  • v1.3.3 27.04.2018. Add @license meta
  • v1.3.3 27.04.2018. Some mild cleanup, Some more refactoring, Style the pager box, FIX Should only rebuild pager after _link_ click
  • v1.3.2 27.04.2018. Indent; cleanup with eslint
  • v1.3.1 26.04.2018. Stop using #siblings; add support for pushState, Indent; cleanup with eslint
  • v1.2.4 27.11.2016. Synced from GitHub - Set max height of TOC, so it doesn't fall off the bottom of the page
  • v1.2.3 09.09.2015. Imported from URL
  • v1.2.1 07.07.2015. Imported from URL
  • v1.2.1 24.01.2015. Imported from URL