MCPcopy
hub / github.com/Justineo/github-hovercard / extract

Function extract

src/hovercard.js:1356–1380  ·  view source on GitHub ↗
(context)

Source from the content-addressed store, hash-verified

1354 }
1355
1356 function extract(context) {
1357 if (
1358 cardOptions.disableProjects &&
1359 location.href.match(URL_PROJECT_PATTERN)
1360 ) {
1361 return
1362 }
1363
1364 let selectors = Object.keys(STRATEGIES)
1365 selectors.forEach(selector => {
1366 let strategy = STRATEGIES[selector]
1367 let elems = $(selector)
1368 elems.each(function() {
1369 if (isExclude(this)) {
1370 return
1371 }
1372
1373 queueTask(() => {
1374 extractSilent(() => {
1375 extractElem(context, this, strategy)
1376 })
1377 })
1378 })
1379 })
1380 }
1381
1382 const TIP_SELECTOR = Object.keys(EXTRACT_TYPE)
1383 .map(key => EXTRACT_TYPE[key])

Callers 1

hovercard.jsFile · 0.70

Calls 4

isExcludeFunction · 0.70
queueTaskFunction · 0.70
extractSilentFunction · 0.70
extractElemFunction · 0.70

Tested by

no test coverage detected