LoginSignup
0

Twitterのアイコンを消すChrome拡張を作りました

Posted at

なくなった方がスッキリする

(() => {
  const removeIcon = () => document.querySelector('h1[role="heading"] svg')?.remove();

  removeIcon();

  setInterval(() => {
    removeIcon();
  }, 100);
})();

コードはシンプルに100ms毎にh1のsvgがあるのかをチェックして、あれば要素を削除しています。

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0