js/options.js
// generate filter for the uri specified via form
generate filter for the uri specified via form
generate filter for the uri specified via form
function generateFilter () {
    const mesg = document.getElementById('gen-mesg')
    const form = document.getElementById('uri')
    const link = form.value
    utils.generateFilterFromURL(link).then(([vid, filter, err]) => {
      if (err === null) {
        document.getElementById('filters').value += '\n' + formatFilter(filter)
        mesg.innerText = `Generated for ${vid}`
      } else {
        mesg.innerText = err
      }
    })
  }
function generateFilter ( ) { const mesg = document . getElementById ( 'gen-mesg' ) const form = document . getElementById ( 'uri' ) const link = form . value utils . generateFilterFromURL ( link ) . then ( ( [ vid , filter , err ] ) => { if ( err === null ) { document . getElementById ( 'filters' ) . value += '\n' + formatFilter ( filter ) mesg . innerText = ` ${ vid } ` } else { mesg . innerText = err } } ) }
generate filter for the uri specified via form
generate filter for the uri specified via form