arya2004/cmt-autofill

Externalize country list into a separate file

Open

#31 opened on Oct 7, 2025

 (2 comments) (0 reactions) (1 assignee)JavaScript (11 forks)auto 404
chrome-extensionfeature-requestgood first issuehacktoberfestintermediatejavascriptrefactortesting

Repository metrics

Stars
 (6 stars)
PR merge metrics
 (PR metrics pending)

Description

Problem

popup.html contains over 250 lines of hardcoded <option> tags for countries. This bloats the HTML and makes updates hard.

Suggested Refactor

  • Move country list to extension/countries.js as a JS array.
  • Load countries dynamically in popup.js inside addAuthor() function.
  • Reduce HTML size and improve data reusability.

Benefit

Makes country data reusable and reduces clutter in popup HTML.

Contributor guide