MCPcopy Index your code
hub / github.com/spicetify/cli / removeInteraction

Function removeInteraction

jsHelper/sidebarConfig.js:149–164  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

147 }
148
149 function removeInteraction() {
150 hiddenList.classList.add("hidden-visually");
151 container.remove();
152 for (const a of ordered) {
153 a[0].onmouseover = undefined;
154 }
155 if (YLXSidebarState === 1) document.querySelector(".main-yourLibraryX-collapseButton > button")?.click();
156 else
157 document.documentElement.style.setProperty(
158 "--nav-bar-width",
159 `${Spicetify.Platform.LocalStorageAPI.getItem(
160 YLXSidebarState === 2 ? "ylx-expanded-state-nav-bar-width" : "ylx-default-state-nav-bar-width"
161 )}px`
162 );
163 writeStorage();
164 }
165
166 (async () => {
167 await new Promise((res) => Spicetify.Events.webpackLoaded.on(res));

Callers 1

sidebarConfig.jsFile · 0.70

Calls 1

writeStorageFunction · 0.85

Tested by

no test coverage detected