DOM manipulation in extensions?

Is it possible to do DOM manipulation within an extension? Getting elements on a page using

document.getElementsByClassName("jp-SideBar")

in the activate function property produces a collection of HTMLElements, however attempting to directly access the element like

document.getElementsByClassName("jp-SideBar")[0]

returns an undefined value.

1 Like