您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Removes classes that are not needed in moodle
// ==UserScript== // @name Moodle Class Hider // @namespace http://cryosis.co/ // @version 0.1 // @description Removes classes that are not needed in moodle // @author Cryosis // @match *.moodle.weltec.ac.nz/my/* // ==/UserScript== // Add the course code (or any substring) of the classes you want to hide const CLASSES = [ 'IT: General Information', 'IT7358', 'IT7359', 'IT6280', 'IT6256', 'IT6253', 'IT6221', 'Mai -- Communication', ]; $(window).load(function () { let courseList = $('.course_list'); CLASSES.forEach(className => { $(courseList).children().has(`[title*="${className}"]`).remove() }); })