wikiroute

Finds the shortest routes between two wikipedia pages and marks the corresponding links

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

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

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

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

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

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

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

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

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

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

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

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

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

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

作者
Revi Gerner
日安装量
0
总安装量
5
评分
0 0 0
版本
0.5.2
创建于
2024-12-04
更新于
2025-11-01
大小
10.6 KB
许可证
MIT
适用于

This script finds the shortest path between two articles on wikipedia.org using only links on Wikipedia articles. These links are marked so you can follow them.

Usage: Press 'r' or use the 'route' menu command to start a route from the current page. You should get a prompt that allows you to specify the destination. After that the script will mark the links to follow in 3 different colors: black, gray and green. Black links take you directly to the next page, gray links go via a redirect and green links occur when the links on a page are different than what the extension expected.

You can press 'k' or use the 'link' menu command to focus one of the links.

When you have reached the destination the script will stop marking links until you start another route.

In order to find the shortest path it uses the API provided by wikiroute.revig.nl Currently this API only works for en.wikipedia.org and nl.wikipedia.org. There is partial functionality for the mobile versions, although it doesn't work as well because the mobile version misses some links that are present on the desktop version.