回答編集履歴
1
動作確認ソース追加
answer
CHANGED
@@ -2,4 +2,30 @@
|
|
2
2
|
```javascript
|
3
3
|
//$('body.ms-windows')body('color','#e0245e');
|
4
4
|
$('body.ms-windows').css('color','#e0245e');
|
5
|
+
```
|
6
|
+
|
7
|
+
追記
|
8
|
+
動作確認できました。teratail.comで確認
|
9
|
+

|
10
|
+
|
11
|
+
manifest.json
|
12
|
+
```json
|
13
|
+
{
|
14
|
+
"name": "MyTestChromeAddon",
|
15
|
+
"version": "0.0.1",
|
16
|
+
"manifest_version": 2,
|
17
|
+
"description": "Chromeアドオンを自作してみるテスト。",
|
18
|
+
"content_scripts": [
|
19
|
+
{
|
20
|
+
"matches": ["https://teratail.com/*"],
|
21
|
+
"js": ["jquery-3.2.1.min.js", "huga.js"]
|
22
|
+
}
|
23
|
+
]
|
24
|
+
}
|
25
|
+
```
|
26
|
+
huga.js
|
27
|
+
```javascript
|
28
|
+
$(function(){
|
29
|
+
$('body').css('color','#e0245e');
|
30
|
+
});
|
5
31
|
```
|