Jump to Text

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

当前为 2020-06-05 提交的版本,查看 最新版本

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

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

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 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.