app/src/inject/autofill.js
// Function to inject into the popup search window
Function to inject into the popup search window
Function to inject into the popup search window
function search() {
    const frame = document.getElementById('searchFrame').contentDocument;
    const allFields = frame.getElementById('lkenhmdSEARCH_ALL');
    const theForm = frame.getElementById('theForm');
    allFields.checked = true;theForm.submit();
    const resFrame = document.getElementById('resultsFrame');
    resFrame.onload = function() {
      const resDoc = resFrame.contentDocument;
      const rows = resDoc.querySelector('.list').rows;
      if (rows.length === 2) {
        rows[1].cells[0].firstElementChild.click();
        window.close();
      }
    };
  }
function search ( ) { const frame = document . getElementById ( 'searchFrame' ) . contentDocument ; const allFields = frame . getElementById ( 'lkenhmdSEARCH_ALL' ) ; const theForm = frame . getElementById ( 'theForm' ) ; allFields . checked = true ; theForm . submit ( ) ; const resFrame = document . getElementById ( 'resultsFrame' ) ; resFrame . onload = function ( ) { const resDoc = resFrame . contentDocument ; const rows = resDoc . querySelector ( '.list' ) . rows ; if ( rows . length === 2 ) { rows [ 1 ] . cells [ 0 ] . firstElementChild . click ( ) ; window . close ( ) ; } } ; }
Function to inject into the popup search window
Function to inject into the popup search window