您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Automatically expands all tabs in Canvas assignments and combines content
This userscript automatically expands all tabbed content in Canvas assignments, allowing you to view all assignment instructions on a single page instead of clicking through multiple tabs. It adds a convenient "Expand All Tabs" button at the top of the assignment description and automatically expands all content when the page loads.
First, install a userscript manager:
Install the script:
By default, the script works with URLs ending in "instructure.com", but many schools use custom Canvas URLs. Here's how to modify the script for your school:
@match
line in the script:
// @match https://*.instructure.com/courses/*/assignments/*
// @match https://*.instructure.com/courses/*/assignments/*
// @match https://canvas.university.edu/courses/*/assignments/*
// @match https://lms.university.edu/courses/*/assignments/*
Example Modifications:
javascript
// @match https://elearn.ucr.edu/courses/*/assignments/*
// @match https://*.instructure.com/courses/*/assignments/*
// @match https://canvas.university.edu/courses/*/assignments/*
// @match https://canvas.otherschool.edu/courses/*/assignments/*
Note: Make sure to keep the /courses/*/assignments/*
part of the URL pattern, as this ensures the script only runs on assignment pages.
https://
and the first /
after the domainAfter adding your school's URL:
If the script doesn't work after modification, double-check that your URL pattern exactly matches your school's Canvas URL.