Skip to content

sealeelike/Optimizing-XJTLU

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

Optimizing-XJTLU

优化校园生活

LMC_myCourses.js

A Tampermonkey script that makes the "My Courses" interface more hilarious.

Script

Before After

Network issues

Access school online service (mailbox, LMC...) via campus network with a local proxy

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.

Windows OS Tips

Sign in Onedrive with a system proxy on

CheckNetIsolation.exe LoopbackExempt -a -n="Microsoft.AAD.BrokerPlugin_cw5n1h2txyewy"

Ubuntu (Linux) OS Tips

Use Campus Onedrive on Linux via rclone

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:

  1. Log in to your XJTLU Microsoft account in the default browser.
  2. Log in to the same account in Microsoft Authenticator on your phone.
  3. Register the phone as a trusted device if Microsoft asks.
  4. Install Rclone Manager. I used the Flatpak version.
  5. Create a new OneDrive remote in Rclone Manager.
  6. Let it open the Microsoft login page in the browser.
  7. Approve the login in Microsoft Authenticator.
  8. Choose a local mount path.
  9. 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 full

Unmount:

fusermount3 -u ~/OneDrive-XJTLU

About

优化校园生活

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors