arya2004/cmt-autofill

Externalize country list into a separate file

開放

#31 建立於 2025年10月7日

 (2 則留言) (0 個反應) (1 位負責人)JavaScript (11 個分叉)auto 404
chrome-extensionfeature-requestgood first issuehacktoberfestintermediatejavascriptrefactortesting

倉庫指標

星標
 (6 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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.

貢獻者指南