irok / CanonicalUrlDetector

Browser extension to change url in address bar to canonical url. (for Chrome and Firefox)
MIT License
9 stars 0 forks source link

v2.0 #2

Closed irok closed 4 years ago

irok commented 4 years ago
  1. content.jsはcanonical URLを検出するだけにして、状態管理などはすべてbackground.jsで行うように変える。
  2. canonical URLとlocation.hrefが同じならアイコンはinactiveにする。
  3. onHistoryStateUpdatedイベントが来たらoriginal URLをそのURLに変更し、2のチェックを行う。
  4. canonical URLとoriginal URLが違うときだけページアクションをactiveにする。
irok commented 4 years ago