Errors using webextension-polyfill to make a cross-browser add-on

Also few more things to mention after looking at your github page:

  • you can use ko-fi.com for donations, it has no fees and it’s full of features
  • in your manifest file:
  "background": {
    "scripts": ["browser-polyfill.min.js"]
  },

You can remove it completely since you don’t have any background scripts to be polyfilled :slight_smile:.

  • your content scripts are in a wrong order, I’m pretty sure they are executed in the defined order, so you need to make the polyfill first!
  "content_scripts": [{
    "matches" : ["<all_urls>"],
    "js": [
      "content_scripts/create_total_cards_button.js",
      "content_scripts/hide_card_counters.js",
      "content_scripts/show_card_counters.js",
      "browser-polyfill.min.js"  // this is bad, it needs to be first
    ]
  }],

Also, you do you really need to inject all those scripts into all pages? Isn’t this extension for some specific site only?