diff options
Diffstat (limited to 'uncompressed/googledrive')
-rw-r--r-- | uncompressed/googledrive/index.js | 7 | ||||
-rw-r--r-- | uncompressed/googledrive/package.json | 4 |
2 files changed, 8 insertions, 3 deletions
diff --git a/uncompressed/googledrive/index.js b/uncompressed/googledrive/index.js index 3d2e725..9c4da64 100644 --- a/uncompressed/googledrive/index.js +++ b/uncompressed/googledrive/index.js | |||
@@ -1,6 +1,11 @@ | |||
1 | var os = require('os') | ||
2 | |||
1 | module.exports = Franz => | 3 | module.exports = Franz => |
2 | class googledrive extends Franz { | 4 | class googledrive extends Franz { |
3 | overrideUserAgent() { | 5 | overrideUserAgent() { |
4 | return "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:72.0) Gecko/20100101 Firefox/72.0"; | 6 | if (os.platform() == 'linux') |
7 | return "Mozilla/5.0 (X11; Linux x86_64; rv:72.0) Gecko/20100101 Firefox/72.0" | ||
8 | else | ||
9 | return "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:72.0) Gecko/20100101 Firefox/72.0"; | ||
5 | } | 10 | } |
6 | }; | 11 | }; |
diff --git a/uncompressed/googledrive/package.json b/uncompressed/googledrive/package.json index f741db5..5b97042 100644 --- a/uncompressed/googledrive/package.json +++ b/uncompressed/googledrive/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "googledrive", | 2 | "id": "googledrive", |
3 | "name": "Google Drive", | 3 | "name": "Google Drive", |
4 | "version": "1.0.2", | 4 | "version": "1.0.3", |
5 | "description": "Google Drive", | 5 | "description": "Google Drive", |
6 | "main": "index.js", | 6 | "main": "index.js", |
7 | "author": "Djonathan Goulart<d.goulart@outlook.com.br>", | 7 | "author": "Djonathan Goulart<d.goulart@outlook.com.br>", |
@@ -22,4 +22,4 @@ | |||
22 | }, | 22 | }, |
23 | "openDevTools": false | 23 | "openDevTools": false |
24 | } | 24 | } |
25 | } \ No newline at end of file | 25 | } |