0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

作る

まず適当にフォルダを作成します。
manifest.jsonを作成します

manifest.json
{
    "name": "名前",
    "description": "説明を書く",
    "version": "書き換える(例えば1.0のように)",
    "manifest_version": 3,
     "action": {},
     "content_scripts": [
        {
          "js": ["s.js"],
          "matches": ["https://www.google.com/*"]
        }
    ]
}

そしてフォルダの中にs.jsを作成してメモ帳で開いて
そこの中には

s.js
let body = document.querySelector('body')
let addElement = document.createElement('h1');
addElement.textContent = 'イエーイ';
body.prepend(addElement);

これらの仕組みは
google.comにアクセスすると
ページの一番上に
イエーイと表示されます。

0
1
0

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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?