您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Automatically expands the subfolder list in Panopto
// ==UserScript== // @name Auto Expand Subfolders List in Panopto // @namespace https://greasyfork.org/users/399468 // @version 1.0.1 // @license MIT // @description Automatically expands the subfolder list in Panopto // @author ashdavis // @match https://*.hosted.panopto.com/Panopto/Pages/Sessions/List.aspx* // @icon https://www.google.com/s2/favicons?sz=64&domain=panopto.com // @grant none // ==/UserScript== window.onload = function() { let pageContent = document.querySelectorAll('#subfolderBar')[0]; const expandFolders = function(mutationList,observer) { for(const mutation of mutationList) { if (mutation.type === 'childList') { const link = document.querySelector('.expand-subfolders.ellipsis.subfolder-wrapper > div'); link.click(); break; } } }; const observer = new MutationObserver(expandFolders); if (pageContent){ observer.observe(pageContent, { childList: true, subtree: true }); } }