优化校园生活
A Tampermonkey script that makes the "My Courses" interface more hilarious.
| Before | After |
|---|---|
![]() |
![]() |
Ensure that all queries for *.xjtlu.edu.cn are routed through a LAN DNS server while connected to the campus network.
For Windows users, you can obtain the LAN DNS address/ip by running nslookup in the CMD.
Then add a DNS mapping rule into your proxy application.
CheckNetIsolation.exe LoopbackExempt -a -n="Microsoft.AAD.BrokerPlugin_cw5n1h2txyewy"Why is it difficult:
- Linux has no official OneDrive client.
- Some third-party clients may ask for admin permission from the school.
This path worked for me:
- Log in to your XJTLU Microsoft account in the default browser.
- Log in to the same account in Microsoft Authenticator on your phone.
- Register the phone as a trusted device if Microsoft asks.
- Install Rclone Manager. I used the Flatpak version.
- Create a new OneDrive remote in Rclone Manager.
- Let it open the Microsoft login page in the browser.
- Approve the login in Microsoft Authenticator.
- Choose a local mount path.
- Mount the remote.
After that, OneDrive works like a network drive.
It is not a full offline sync.
Avoid editing the same file on multiple devices at the same time.
If you prefer command line rclone, the remote should look like:
XJTLU:
type = onedrive
Mount example:
mkdir -p ~/OneDrive-XJTLU
rclone mount XJTLU: ~/OneDrive-XJTLU --vfs-cache-mode fullUnmount:
fusermount3 -u ~/OneDrive-XJTLU
