aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/yahoo-mail/index.js
blob: 8e2576a08042854065d091181e86c3fb676874ff (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module.exports = Ferdium =>
  class YahooMail extends Ferdium {
    modifyRequestHeaders() {
      return [
        {
          headers: {
            // TODO: Rather than hardcoding like this, the user should set it for their individual installation of Ferdium
            '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',
          },
          requestFilters: {
            urls: ['*://*/*'],
          },
        },
      ];
    }
  };