MCPcopy Create free account
hub / github.com/Tampermonkey/tampermonkey / createFireMenu

Function createFireMenu

src/fire.js:430–501  ·  view source on GitHub ↗
(items, use_curtain)

Source from the content-addressed store, hash-verified

428};
429
430var createFireMenu = function(items, use_curtain) {
431 if (!items) {
432 console.log("fire: items is empty!");
433 return;
434 }
435 allItems = items;
436
437 var o = document.getElementById('fire')
438 var main = crc('div', '', 'fire', 'main');
439
440 if (o) {
441 var p = o.parentNode;
442 p.removeChild(o);
443 p.appendChild(main);
444 document.body.setAttribute('class', 'main');
445 }
446
447 if (V) console.log("fire: head");
448
449 var head = crc('div', 'head_container', 'fire', 'head_container');
450 var tv = crc('div', 'tv_container', 'fire', 'tv_container');
451
452 var heada = cr('a', 'head_link', 'fire', 'head_link');
453 heada.href="http://tampermonkey.net";
454 heada.target="_blank";
455
456 var head1 = crc('div', 'float margin4', 'fire', 'head1');
457 var image = crc('img', 'banner', 'fire');
458 image.src = chrome.extension.getURL('images/icon128.png');
459
460 var head2 = crc('div', 'float head margin4', 'fire', 'head2');
461 var heading = cr('div', 'fire');
462
463 var ver = crc('div', 'version', 'version', 'version');
464 ver.textContent = ' by Jan Biniok';
465
466 var search = cr('div', 'search', 'box', '');
467
468 heading.textContent = "T" + "amper" + "F" + "ire";
469
470 head1.appendChild(image);
471 head2.appendChild(heading);
472 head2.appendChild(ver);
473
474 heada.appendChild(head1);
475 heada.appendChild(head2);
476
477 head.appendChild(heada);
478 head.appendChild(search);
479
480 main.appendChild(head);
481 main.appendChild(tv);
482
483 if (V) console.log("fire: tabView");
484 var tabv = TabView.create('_main', tv);
485
486 if (V) console.log("fire: itemsToMenu");
487 var run = function() {

Callers 1

onRespFunction · 0.85

Calls 2

crcFunction · 0.85
crFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…