Skip to content

💡 Javascript to open all the dropdowns on the course website #397

@markusyeo

Description

@markusyeo

I've often found opening every single link on the course website under the weekly topics to be very frustrating and annoying. Hence I wrote a simple script that clicks on all the > carets. This currently works on Chrome for me and opens only the > carets on the weekly topic page.

var inputs = document.getElementsByClassName("glyphicon glyphicon-chevron-right")

inputsArray = Array.prototype.slice.call(inputs, 0)
                    // then we filter the Array:
                    .filter(function (el) {
return !(el.ariaHidden);
    });
inputsArray
  .forEach((element) => element.click());

Steps to use:

  1. Open developer tools.
  2. Open the console tab.
  3. Paste the script into the console and wait.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions