質問編集履歴

2

コードを抜粋ではなく全て記載

2019/02/19 11:49

投稿

Takahiro310
Takahiro310

スコア30

test CHANGED
File without changes
test CHANGED
@@ -22,17 +22,49 @@
22
22
 
23
23
  ``` javascript
24
24
 
25
- if (location.href.indexOf('fugafuga.fuga') > -1) {
25
+ // ==UserScript==
26
26
 
27
- setTimeout(() => {
27
+ // @name 質問用
28
28
 
29
- console.log('lets back');
29
+ // @namespace http://tampermonkey.net/
30
30
 
31
- window.history.back(-1);
31
+ // @version 0.1
32
32
 
33
- }, 1000);
33
+ // @description aaa
34
34
 
35
+ // @author aaaa
36
+
37
+ // @include http://hogehoge.hoge
38
+
39
+ // @include http://fugafuga.fuga
40
+
41
+ // @grant none
42
+
43
+ // @require https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js
44
+
45
+ // ==/UserScript==
46
+
47
+
48
+
49
+ (function() {
50
+
51
+ 'use strict';
52
+
53
+ if (location.href.indexOf('fugafuga.fuga') > -1) {
54
+
55
+ setTimeout(() => {
56
+
57
+ console.log('lets back');
58
+
59
+ window.history.back(-1);
60
+
61
+ }, 1000);
62
+
35
- }
63
+ }
64
+
65
+ })();
66
+
67
+
36
68
 
37
69
  ```
38
70
 
@@ -51,3 +83,9 @@
51
83
  どなたかお力を貸していただけませんでしょうか
52
84
 
53
85
  よろしくおねがいします
86
+
87
+
88
+
89
+ 修正依頼に関して
90
+
91
+ 全部のせました

1

versionの追記

2019/02/19 11:49

投稿

Takahiro310
Takahiro310

スコア30

test CHANGED
File without changes
test CHANGED
@@ -28,7 +28,7 @@
28
28
 
29
29
  console.log('lets back');
30
30
 
31
- window.history.back(0);
31
+ window.history.back(-1);
32
32
 
33
33
  }, 1000);
34
34
 
@@ -36,6 +36,16 @@
36
36
 
37
37
  ```
38
38
 
39
+ ##Chromeのversion
40
+
41
+ バージョン: 72.0.3626.109(Official Build) (64 ビット)
42
+
43
+
44
+
45
+
46
+
47
+
48
+
39
49
 
40
50
 
41
51
  どなたかお力を貸していただけませんでしょうか