Jump to Text

Adds single-key hotkeys that jump to specific text (or anchors) on a page.

От 01.05.2020. Виж последната версия.

За да инсталирате този скрипт, трябва да имате инсталирано разширение като Tampermonkey, Greasemonkey или Violentmonkey.

За да инсталирате този скрипт, трябва да инсталирате разширение, като например Tampermonkey .

За да инсталирате този скрипт, трябва да имате инсталирано разширение като Tampermonkey или Violentmonkey.

За да инсталирате този скрипт, трябва да имате инсталирано разширение като Tampermonkey или Userscripts.

За да инсталирате скрипта, трябва да инсталирате разширение като Tampermonkey.

За да инсталирате този скрипт, трябва да имате инсталиран скриптов мениджър.

(Вече имам скриптов мениджър, искам да го инсталирам!)

За да инсталирате този стил, трябва да инсталирате разширение като Stylus.

За да инсталирате този стил, трябва да инсталирате разширение като Stylus.

За да инсталирате този стил, трябва да инсталирате разширение като Stylus.

За да инсталирате този стил, трябва да имате инсталиран мениджър на потребителски стилове.

За да инсталирате този стил, трябва да имате инсталиран мениджър на потребителски стилове.

За да инсталирате този стил, трябва да имате инсталиран мениджър на потребителски стилове.

(Вече имам инсталиран мениджър на стиловете, искам да го инсталирам!)

Автор
Gavin Borg
Рейтинг
0 0 0
Версия
1.4
Създаден
22.01.2020
Обновен
01.05.2020
Размер
6 КБ
Лиценз
Няма
Работи на

This script adds customizable, one-button hotkeys to any site for jumping to anchor tags with a particular name.

HOW TO USE

  1. Add the sites you want to either the user includes or user matches - this script does not run on any sites by default.
  2. Open one of the pages that match your sites.
  3. Open the settings page using either Ctrl+Comma or the sub-menu item for the script.
  4. Enter the single-button hotkeys (to link multiple keys to the same anchor, separate with spaces) + either anchor names (<a id="X"> or <a name="X">) or text to jump to.
  5. Save and close the settings and reload the page.
  6. Now, pressing the button in question should jump to the corresponding anchor or text.

NOTES

  • This script uses the first matching user include/match to store/use your settings, so I'd recommend against overlapping rules there.
  • This script only supports single-button (non-modifier) hotkeys - that means hotkeys like a, not Ctrl+a.
  • The settings are saved locally, so you should be able to export/import as needed using the "Storage" tab in Tampermonkey or similar.

Changelog

  • 1.0 (1/22/20) - Initial release
  • 1.1 (2/18/20)
    • Add support for multiple hotkeys per anchor (separate them with spaces)
    • Move settings to local storage so that they span sites.
    • This does mean that you'll lose any existing hotkeys if you saved them on the previous version.
    • This should allow users to export/import settings using the "Storage" tab in Tampermonkey
    • Sites like http*://www.google.com/* should now work from both HTTP and HTTPS versions of the page (not just the one you saved the hotkeys on)
  • 1.2 (2/18/20)
    • Rename script (Anchor Hotkeys => Jump to Text)
    • Add support for jumping to specific text (within a single element) in addition to anchors
  • 1.3 (3/14/20)
    • Add a default match (for this page) to abide by Greasy Fork's new guidelines. Feel free to disable this after install.
    • Fix issue with finding text in elements other than spans

Source: GitHub

Available on Greasy Fork for easy installation.