您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
none
// ==UserScript== // @name DePaul MyCDM Tutoring Page Formatter // @namespace http://tampermonkey.net/ // @version 0.2 // @description none // @author Maskar // @match https://my.cdm.depaul.edu/v2/Hours/HoursHome/SlotManagement // @grant none // ==/UserScript== (function() { 'use strict'; // Your code here... $('#notificationCallout').hide(); $('#leftnav').toggleClass('nav_collapse'); $('#content').toggleClass('nav_collapse'); //window.setTimeout(function() { // $('#currentAppointmentTable').find('tr td:nth-child(1),td:nth-child(4),td:nth-child(5)').hide(); // $('#pastAppointmentTable').find('tr td:nth-child(1),td:nth-child(4),td:nth-child(5)').hide(); //}, 1000); $('<style>').text("\ #currentAppointmentTable tr td:nth-child(4),td:nth-child(5){display: none;}\ #pastAppointmentTable tr td:nth-child(4),td:nth-child(5){display: none;}\ ").appendTo(document.head) $('#currentAppointmentTable').on('DOMSubtreeModified', function () { $('.slotRow').filter(function(index){ return $(this).attr('data-appointmentdate') != $(this).next().attr('data-appointmentdate') }).css('border-bottom','solid darkblue'); }); $('#pastAppointmentTable').on('DOMSubtreeModified', function () { $('.slotRow').filter(function(index){ return $(this).children('td').eq(1).text() != $(this).next().children('td').eq(1).text() }).css('border-bottom','solid darkblue'); }); })();