blob: 495d3e230cd6c72167958709a21fbdee3eaa476f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# SPDX-License-Identifier: AGPL-3.0-or-later
# pylint: disable=missing-module-docstring
import typing as t
from flask_babel import gettext # pyright: ignore[reportUnknownVariableType]
from searx.plugins import Plugin, PluginInfo
if t.TYPE_CHECKING:
from searx.plugins import PluginCfg
@t.final
class SXNGPlugin(Plugin):
"""Automatically loads the next page when scrolling to bottom of the current page."""
id = "infiniteScroll"
def __init__(self, plg_cfg: "PluginCfg") -> None:
super().__init__(plg_cfg)
self.info = PluginInfo(
id=self.id,
name=gettext("Infinite scroll"),
description=gettext("Automatically loads the next page when scrolling to bottom of the current page"),
preference_section="ui",
)
|