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.

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

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

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

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

你需要先安裝一款使用者腳本管理器擴展,比如 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.