MCPcopy Create free account
hub / github.com/SKVNDR/FastDork / updatePayloadEditorLabel

Function updatePayloadEditorLabel

Script/FastDork.js:1375–1401  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1373 }
1374
1375 function updatePayloadEditorLabel() {
1376 if (!UI.payloadEditorLabel || !UI.listTab2) return;
1377
1378 const selectedOption = UI.listTab2.options[UI.listTab2.selectedIndex];
1379 const selectedText = selectedOption?.textContent?.trim().toUpperCase() || "";
1380 const selectedValue = UI.listTab2.value || "";
1381
1382 if (
1383 selectedValue.startsWith(CONSTANTS.LIST_PREFIX_RESULT) ||
1384 selectedText.startsWith("RESULT:") ||
1385 selectedText.startsWith("R :")
1386 ) {
1387 UI.payloadEditorLabel.textContent = "Result";
1388 return;
1389 }
1390
1391 if (
1392 selectedValue.startsWith(CONSTANTS.LIST_PREFIX_DORK) ||
1393 selectedText.startsWith("DORK:") ||
1394 selectedText.startsWith("D :")
1395 ) {
1396 UI.payloadEditorLabel.textContent = "Dork list / Payload";
1397 return;
1398 }
1399
1400 UI.payloadEditorLabel.textContent = "Payload";
1401 }
1402 function clearPayloadInput() {
1403 if (UI.payloadInput) UI.payloadInput.value = "";
1404 updatePayloadLineCount();

Callers 1

updatePayloadLineCountFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected