您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Collapses all folders on load and adds Collapse All button
当前为
// ==UserScript== // @name Collapse All Survey Folders in Qualtrics // @author andmade // @license MIT // @description Collapses all folders on load and adds Collapse All button // @include http://*.qualtrics.com/Q/MyProjectsSection // @version 1.0 // @namespace https://greasyfork.org/users/399468 // ==/UserScript== (function() { jQuery('.collapse-icon-container:not(.ng-hide):has(.icon-angle-down-sm)').click(); var collapseButton = document.createElement('li'); collapseButton.innerHTML = 'Collapse All'; jQuery(collapseButton).addClass('hoverable'); jQuery(collapseButton).css('cursor', 'pointer'); var folderContainer = document.getElementById('Folder_0'); folderContainer.insertAdjacentElement('beforebegin', collapseButton); collapseButton.addEventListener('click', function() { jQuery('.collapse-icon-container:not(.ng-hide):has(.icon-angle-down-sm)').click(); }); })();