Edit requests of 超最低限の Chrome エクステンションを開発しウェブストアで公開するまでの手順

@ykzts

2017-01-02

Not reviewed

Google ChromeはDOM4が使えるので`insertBefore`よりも`before`のほうがスマートかなと思いました

@ykzts

2017-01-02

Not reviewed

`String`の`substr`は非推奨なので`slice`を使ったほうが良さそうです

@ykzts

2017-01-02

Not reviewed

`data-*`属性を扱うときは`dataset`を使ったほうが便利そうです

@ykzts

2017-01-02

Not reviewed

`Array.prototype.includes`を使うよりもスプレッド演算子を使ったほうが短くて良さそうです

@ykzts

2017-01-02

Not reviewed

`DOMTokenList`は`contains`メソッドで引数に与えられた値が含まれるかを調査してくれます

Please check the preview of this article

We released Markdown parser changes on February 24, 2022. There may be some unexpected appearance changes in this update, because this article was posted before the changes.
Please don't forget to check the preview before updating your article.
For more information on the changes, please read this article.