Trying to create an extension

Hi, I’m trying to create an extension for German dictionary search, which will be open with Microsoft Edge.

Here is what I tried, but instead of searching for the specific keyword, it simply searches for the term “term.” Can you please help me to fix this?

# popclip
name: Collins German dictionary
icon: search filled DE
javascript: |
  const term = encodeURIComponent(popclip.input.text)
  const url = '${term}'
  popclip.openUrl(url, {app: ''})

It’s just a matter of the string notation.

To use template literals like ${term}, you need you strirng to be surrounded with backticks:




Now it works! Thank you!

1 Like