Greasy Fork

Greasy Fork is available in English.

change your university

学信网,改成你想要的大学(仅供装逼)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         change your university
// @namespace    http://tampermonkey.net/
// @license MIT
// @version      2024-08-24-3
// @description  学信网,改成你想要的大学(仅供装逼)
// @author       sword
// @match        https://my.chsi.com.cn/archive/wap/gdjy/index.action
// @icon         https://t1.chei.com.cn/archive/favicon.ico
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    const university = "北京大学";
    const major = "计算机科学与技术 | 普通全日制";

    document.querySelectorAll('.yxmc').forEach(u=>{
        if(u.firstChild.data != '您没有考研信息!')
            u.firstChild.data = university;
    })

    document.querySelectorAll('.des').forEach((u,index)=>{
        if(index<2)
            u.firstChild.data = major;
    })

    // Your code here...
})();