Skip to content

Instantly share code, notes, and snippets.

@r-k-b
Last active May 26, 2016 09:38
Show Gist options
  • Save r-k-b/2ae9376e03f26d7b6713c576a177f349 to your computer and use it in GitHub Desktop.
Save r-k-b/2ae9376e03f26d7b6713c576a177f349 to your computer and use it in GitHub Desktop.
Clicks all the visible [+] buttons in a list view. Useful in BC's Category / Classification view.
// ==UserScript==
// @name Expand all tree items
// @namespace https://gist.github.com/r-k-b/
// @version 1.0.0
// @description Clicks all the visible [+] buttons in a list view. Useful in BC's Category / Classification view.
// @author Robert K. Bell
// @homepage https://gist.github.com/r-k-b/2ae9376e03f26d7b6713c576a177f349
// @downloadURL https://gist.github.com/r-k-b/2ae9376e03f26d7b6713c576a177f349/raw/expand-all-tree-items.user.js
// @include *://*/*
// @grant none
// @run-at context-menu
// ==/UserScript==
/* jshint esnext: true */
(() => {
jQuery('.rtPlus').click();
// TODO: repeat until all levels expanded
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment