Jump to Text

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

目前為 2020-06-05 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
Gavin Borg
評價
0 0 0
版本
1.6
建立日期
2020-01-22
更新日期
2020-06-05
尺寸
5.4 KB
授權條款
未知
腳本執行於

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
  • 1.4 (5/1/20)
    • Fix issue where saving any site would overwrite the config for all other sites
    • Close the config window on save, so it's clearer that something happened.

Source: GitHub

Available on Greasy Fork for easy installation.