File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ var FetchUserjs = function () {
4646
4747 this . homeUrl = 'https://greasyfork.org/zh-CN/scripts/24508' ;
4848 this . api = 'https://greasyfork.org/en/scripts/by-site/{host}.json' ;
49- this . host = location . host . split ( '.' ) . splice ( - 2 ) . join ( '.' ) ;
49+ this . host = location . hostname . split ( '.' ) . splice ( - 2 ) . join ( '.' ) ;
5050 this . showTime = 10 ;
5151 this . quietKey = 'jae_fetch_userjs_quiet' ;
5252 this . cacheKey = 'jae_fetch_userjs_cache' ;
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ var FetchUserjs = function () {
4646
4747 this . homeUrl = 'https://greasyfork.org/zh-CN/scripts/24508' ;
4848 this . api = 'https://greasyfork.org/en/scripts/by-site/{host}.json' ;
49- this . host = location . host . split ( '.' ) . splice ( - 2 ) . join ( '.' ) ;
49+ this . host = location . hostname . split ( '.' ) . splice ( - 2 ) . join ( '.' ) ;
5050 this . showTime = 10 ;
5151 this . quietKey = 'jae_fetch_userjs_quiet' ;
5252 this . cacheKey = 'jae_fetch_userjs_cache' ;
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ class FetchUserjs {
22 constructor ( ) {
33 this . homeUrl = 'https://greasyfork.org/zh-CN/scripts/24508' ;
44 this . api = 'https://greasyfork.org/en/scripts/by-site/{host}.json' ;
5- this . host = location . host . split ( '.' ) . splice ( - 2 ) . join ( '.' ) ;
5+ this . host = location . hostname . split ( '.' ) . splice ( - 2 ) . join ( '.' ) ;
66 this . showTime = 10 ;
77 this . quietKey = 'jae_fetch_userjs_quiet' ;
88 this . cacheKey = 'jae_fetch_userjs_cache' ;
You can’t perform that action at this time.
0 commit comments