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

Function updateOffCount

source/options/feature-list.tsx:96–113  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

94const offCount = new Text();
95
96function updateOffCount(): void {
97 const count = countElements('.feature-checkbox:not(:checked)');
98 switch (count) {
99 case 0: {
100 offCount.nodeValue = '';
101 break;
102 }
103
104 case countElements('.feature-checkbox'): {
105 offCount.nodeValue = '(JS off… are you breaking up with me?)';
106 break;
107 }
108
109 default: {
110 offCount.nodeValue = `(${count} off)`;
111 }
112 }
113}
114
115export default async function initFeatureList(): Promise<void> {
116 // Generate list

Callers 1

updateListDomFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected