diff options
author | 2021-05-19 13:41:07 +0530 | |
---|---|---|
committer | 2021-05-19 14:08:59 +0530 | |
commit | c35cda5c57ef9a35f7fb892051a46dd57a6b477a (patch) | |
tree | 4a8c815efe19190f2a624b0375d76f6bbc623774 /recipes/snapdrop/index.js | |
parent | Missed 'prepare' step that enforces the installation of the git pre-commit hooks (diff) | |
download | ferdium-recipes-c35cda5c57ef9a35f7fb892051a46dd57a6b477a.tar.gz ferdium-recipes-c35cda5c57ef9a35f7fb892051a46dd57a6b477a.tar.zst ferdium-recipes-c35cda5c57ef9a35f7fb892051a46dd57a6b477a.zip |
Added new recipe: snapdrop (fixes #512)
Diffstat (limited to 'recipes/snapdrop/index.js')
-rw-r--r-- | recipes/snapdrop/index.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/recipes/snapdrop/index.js b/recipes/snapdrop/index.js new file mode 100644 index 0000000..a0d85b9 --- /dev/null +++ b/recipes/snapdrop/index.js | |||
@@ -0,0 +1,15 @@ | |||
1 | module.exports = (Franz) => | ||
2 | class Snapdrop extends Franz { | ||
3 | modifyRequestHeaders() { | ||
4 | return [ | ||
5 | { | ||
6 | headers: { | ||
7 | 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36', | ||
8 | }, | ||
9 | requestFilters: { | ||
10 | urls: ['*://*/*'], | ||
11 | } | ||
12 | } | ||
13 | ] | ||
14 | } | ||
15 | }; | ||