MCPcopy Index your code
hub / github.com/refined-github/refined-github / getClasses

Function getClasses

source/helpers/dom-utils.ts:126–135  ·  view source on GitHub ↗
(element: Element)

Source from the content-addressed store, hash-verified

124}
125
126export function getClasses(element: Element): Set<string> {
127 const list = new Set<string>();
128 for (const cls of element.classList) {
129 if (!cls.startsWith('rgh-')) {
130 list.add(cls);
131 }
132 }
133
134 return list;
135}
136
137const _isSmallDevice = screen.width < 500;
138export function isSmallDevice(): boolean {

Callers 2

addCountsFunction · 0.85
addButtonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected