您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Adds user IDs to the echo360 Users admin page. Prints section IDs to the console on the Courses page.
// ==UserScript== // @name _Echo360 ID Revealer // @namespace Violentmonkey Scripts // @include https://echo360.org/admin/courses* // @include https://echo360.org/admin/users* // @require http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js // @grant GM_addStyle // @run-at document-idle // @version 1.0 // @author Jim Monaco // @description Adds user IDs to the echo360 Users admin page. Prints section IDs to the console on the Courses page. // @license MIT // ==/UserScript== var observer = new MutationObserver(resetTimer); var timer = setTimeout(action, 3000, observer); // wait for the page to stay still for 3 seconds observer.observe(document, {childList: true, subtree: true}); // reset timer every time something changes function resetTimer(changes, observer) { clearTimeout(timer); timer = setTimeout(action, 3000, observer); } function action(observer) { observer.disconnect(); $("div.adminList-item.child.section > .adminListItem-cell.sectionNumber").each( function(index){ var txt = $(this).siblings().find("a[title='Instructor View']" ).attr("href"); var id = txt.replace("/section/", ""); id = id.replace("/home", ""); console.log($( this ).text() + " : "+ id); //$(this).append("<span> id:</span><span>"+id+"</span></span>"); } ); $(".adminList-item.userList-item").each( function(index){ var txt = $(this).attr("data-object"); //console.log(txt); const obj = JSON.parse(txt); var id = obj.userId; var email = $(this).find(".adminListItem-cell.email").text(); console.log(email+" : "+id); $(this).find(".adminListItem-cell.name").parent().append("<div>"+id+"</div>"); }); }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址