示例#1
0
              'http://malwaredomains.lehigh.edu/files/justdomains.zip,'
              'http://pgl.yoyo.org/adservers/serverlist.php?'
              'hostformat=hosts&mimetype=plaintext,'
              'http://hosts-file.net/ad_servers.asp'),
          "List of URLs of lists which contain hosts to block.\n\n"
          "The file can be in one of the following formats:\n\n"
          "- An '/etc/hosts'-like file\n"
          "- One host per line\n"
          "- A zip-file of any of the above, with either only one file, or a "
          "file named 'hosts' (with any extension)."),
     )),
 ('hints',
  sect.KeyValue(
      ('border', SettingValue(typ.String(), '1px solid #E3BE23'),
       "CSS border value for hints."),
      ('opacity', SettingValue(typ.Float(minval=0.0, maxval=1.0),
                               '0.7'), "Opacity for hints."),
      ('mode', SettingValue(typ.HintMode(),
                            'letter'), "Mode to use for hints."),
      ('chars', SettingValue(typ.String(minlen=2),
                             'asdfghjkl'), "Chars used for hint strings."),
      ('uppercase', SettingValue(
          typ.Bool(), 'false'), "Make chars in hint strings uppercase."),
      ('auto-follow', SettingValue(typ.Bool(), 'true'),
       "Whether to auto-follow a hint if there's only one left."),
      ('next-regexes',
       SettingValue(typ.RegexList(flags=re.IGNORECASE),
                    r'\bnext\b,\bmore\b,\bnewer\b,\b[>→≫]\b,\b(>>|»)\b'),
       "A comma-separated list of regexes to use for 'next' links."),
      ('prev-regexes',
       SettingValue(
示例#2
0
                      'http://hosts-file.net/ad_servers.asp'),
         "List of URLs of lists which contain hosts to block.\n\n"
         "The file can be in one of the following formats:\n\n"
         "- An '/etc/hosts'-like file\n"
         "- One host per line\n"
         "- A zip-file of any of the above, with either only one file, or a "
         "file named 'hosts' (with any extension)."),
    )),

    ('hints', sect.KeyValue(
        ('border',
         SettingValue(typ.String(), '1px solid #E3BE23'),
         "CSS border value for hints."),

        ('opacity',
         SettingValue(typ.Float(minval=0.0, maxval=1.0), '0.7'),
         "Opacity for hints."),

        ('mode',
         SettingValue(typ.HintMode(), 'letter'),
         "Mode to use for hints."),

        ('chars',
         SettingValue(typ.String(minlen=2), 'asdfghjkl'),
         "Chars used for hint strings."),

        ('uppercase',
         SettingValue(typ.Bool(), 'false'),
         "Make chars in hint strings uppercase."),

        ('auto-follow',