arya2004/cmt-autofill

Externalize country list into a separate file

オープン

#31 opened on 2025/10/07

 (2 件のコメント) (0 件のリアクション) (1 人の担当者)JavaScript (11 件のフォーク)auto 404
chrome-extensionfeature-requestgood first issuehacktoberfestintermediatejavascriptrefactortesting

Repository metrics

Stars
 (6 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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.

コントリビューターガイド