您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
闲的没事
// ==UserScript== // @name 辽宁省干部在线学习网_刷课 // @namespace lngbzx.gov.cn // @version 0.4.1 // @description 闲的没事 // @author [email protected] // @license GPLv3 // @match http://*.lngbzx.gov.cn/student/enterCourse.do* // @grant none // @icon https://avatars3.githubusercontent.com/u/25388328 // @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js // ==/UserScript== (function() { 'use strict'; const debug = 1; console.log("%c感谢您使用本插件,请自觉使用。", "color: red; font-style: italic"); $("video").remove() $("iframe").remove() $("body").append("<h1>视频已屏蔽,正在上课</h1>") function sendMessage() { var watchId = document.getElementsByName('watchId')[0].value; var courseId = document.getElementsByName('courseId')[0].value; var courseStudentId = document.getElementsByName('courseStudentId')[0].value; $.ajax({ type: "GET", url: "/student/video/json/ajaxRecordCourseWatchingTime.do?_x=" + Math.random() + "&watchId=" + watchId + "&courseId=" + courseId + "&courseStudentId=" + courseStudentId, data: "{}", contentType: "application/json; charset=utf-8", success: function(data, textStatus, xhr) { console.log(data) }, error: function(msg) { console.error(msg) } }); } for (var i = 0; i <= 100; i++) { sendMessage(); setTimeout("window.close()",1500); } })();