Moodle: Jump to Current Section

Userscript for Moodle sites that lets you quickly jump to the current week/section. Made for the Boost and Fordson themes.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

作者
dotcomboom
日安装量
0
总安装量
10
评分
0 0 0
版本
0.1
创建于
2020-09-28
更新于
2020-09-29
大小
1.4 KB
许可证
暂无
适用于

This is a script I wrote because I got tired of scrolling through many sections on my school's LMS to get to the current week's plan. (Most of my instructors use weekly periods like 27 September - 3 October as sections). In the Fordson, possibly Boost themes, whatever section that's most current is marked by a different color in its header. Internally it just gives the section another class, "current", and that's what my script uses.

Anyway this script has a couple simple variables you can change, jump_on_page_load and navbar. When jump_on_page_load is set to true, when the page loads it'll jump down automatically. When navbar is set to true, it will add a new button to the top navbar that will let you jump manually. Both of these are set by default.

If the navbar button does not show up, or it doesn't jump down automatically, either your theme does things differently or your course does not have any sections marked as current.