Focus on First Task in Vikunja Table view

Focus on First Task in Vikunja Table view. Focuses on the first <a> element in the first <td> of the specified table when it becomes available. You have to change the match parameter below to your website URL.

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
executed
日安装量
0
总安装量
0
评分
0 0 0
版本
1.0
创建于
2025-10-21
更新于
2025-10-21
大小
2.0 KB
许可证
MIT
适用于

Focus on First Task in Vikunja Table view.

After the page is loaded user is able to use "Tab"/"Shift+Tab" on keyboard to navigate forth/back through tasks.

Use Case: You have a saved filter that displays recently changed/created tasks that are not completed yet - basically "Recent" view. You setup a table view for this saved filter and map opening it to some shortcut on your OS. This way when you have to see details of recent stuff you can quickly and conviniently use your keyboard only to do that. Here's visual of what is meant: https://ibb.co/bgVvWM9T

Known bugs

If you don't see first task highlighted - just reload the page.

Configuration

You have to change the @match parameter in script to your website URL.

Optionally: for the shortcut scenario here's example of how that shortcut looks like in Firefox PWA extension:

@echo off
:: Set your Vikunja details here (placeholders - replace with actual values)
set PWA_ID=01K3RJKPDT7AGZ174AGFRTKH4G
firefoxpwa site launch %PWA_ID% --url "https://try.vikunja.io/projects/-20/504"
:: -20 is saved filter's ID & 504 is table view ID

Tech Details

Focuses on the first <a> element in the first <td> of the specified table when it becomes available.