您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
使用川大教务系统顶部导航栏
当前为
// ==UserScript== // @name 使用四川大学教务系统导航栏 // @namespace http://tampermonkey.net/ // @version 0.1 // @description 使用川大教务系统顶部导航栏 // @author Xiongqi // @match http://202.115.47.141/loginAction.do // @grant none // ==/UserScript== (function () { 'use strict'; window.onload = function () { if (window.location.href === 'http://202.115.47.141/loginAction.do') { window.frames['topFrame'].changeLeftMenu = function () { if ( parent.frames['bottomFrame'] && parent.frames['bottomFrame'].frames['menuFrame'] && parent.frames['bottomFrame'].frames['menuFrame'].menus ) { parent.frames['bottomFrame'].frames['menuFrame'].menus.index = window.frames['topFrame'].moduleNum; parent .frames['bottomFrame'] .frames['menuFrame'] .menus.show(); parent .frames['bottomFrame'] .frames['menuFrame'] .menus.click(); } }; console.log('成功'); } }; })();