Talentely Keyboard Shortcuts

Add configurable keyboard shortcuts to Talentely

作者
Jery Js
今日安裝
0
安裝總數
0
評價
0 0 0
版本
2.2
建立日期
2025-07-14
更新日期
2025-07-14
尺寸
5.1 KB
授權條款
MIT
腳本執行於

Talentely Keyboard Shortcuts

A user script that adds configurable keyboard shortcuts to the Talentely LMS platform, specifically for test pages.

Features

  • Quick Navigation: Use keyboard shortcuts to select MCQ options and control test navigation (e.g., "Previous" or "Next").
  • Visual Cues: Automatically adds <kbd> elements next to interactive elements, showing you the assigned shortcut key.
  • Configurable: Easily modify the default shortcuts within the script's talentely object to suit your preferences.
  • Debounced Updates: Smartly updates keybindings only when the question content changes, preventing unnecessary processing.

Installation

  1. Install a User Script Manager: This script requires a user script manager like Violentmonkey or Tampermonkey to run.

  2. Install the Script:

    • After installing your preferred user script manager, click on the "Install" button on this Greasy Fork镜像 page. Your manager will prompt you to confirm the installation.

Usage

Once installed and active on a Talentely test page (https://lms.talentely.com/test/*), you will see small grey boxes (<kbd>) next to:

  • MCQ Options: Press the corresponding number key (1, 2, 3, 4, etc.) to select an option.
  • Bottom Control Buttons: Use the assigned keys (e.g., 'q' for 'Previous', 'e' for 'Next') to trigger actions.

Default Shortcuts:

  • MCQ Options: 1, 2, 3, 4, 5, 6 (for the first 6 options)
  • Bottom Controls (Left to Right):
    • q : Previous
    • e : Next
    • Other buttons in the bottom control strip do not have a default shortcut assigned as they are not common actions.

How to Change Shortcuts

You can customize the shortcuts by editing the script directly in your user script manager. Look for the talentely object at the top of the script:

const talentely = {
  // ...
  mcq_options: {
    keys: [1, 2, 3, 4, 5, 6] // Change these numbers for MCQ options
  },
  bottom_controls: {
    keys: ['', 'q', '', '', 'e', ''] // Change these characters for bottom buttons
  }
};

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址