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

Function initFeatureList

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

Source from the content-addressed store, hash-verified

113}
114
115export default async function initFeatureList(): Promise<void> {
116 // Generate list
117 $('.js-features').append(
118 ...featuresMeta
119 .filter(feature => importedFeatures.includes(feature.id))
120 .map(feature => buildFeatureCheckbox(feature)),
121 );
122
123 // Add notice for features disabled via hotfix
124 await markLocalHotfixes();
125
126 // Load screenshots
127 delegate('.screenshot-link', 'click', summaryHandler);
128
129 // Filter feature list
130 $('input#filter-features').addEventListener('input', featuresFilterHandler);
131
132 // Add feature count. CSS-only features are added approximately
133 $('.features-header').append(`: ${featuresMeta.length + 25} `, offCount);
134
135 delegate('.feature-checkbox', 'change', updateOffCount);
136}
137
138export function updateListDom(): void {
139 moveDisabledFeaturesToTop();

Callers 1

generateDomFunction · 0.85

Calls 4

buildFeatureCheckboxFunction · 0.85
markLocalHotfixesFunction · 0.85
includesMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected