Anilist: Activity-Feed Filter

Control the content displayed in your activity feeds

Autor
SeyTi01
Instalações hoje
0
Total de instalações
28
Avaliações
0 0 0
Versão
1.8.3
Criado
13/09/2023
Atualizado
21/07/2024
Licença
MIT
Aplicável a

Configuration

Edit the config object at the top of the script file to customize the script's behavior. Here are the options:

  • remove: Controls the removal of activities.
    • images (default: false): Set to true to remove activities containing images.
    • gifs (default: false): Set to true to remove activities containing gifs.
    • videos (default: false): Set to true to remove activities containing videos.
    • text (default: false): Set to true to remove activities containing only text.
    • uncommented (default: false): Set to true to remove activities that have no comments.
    • unliked (default: false): Set to true to remove activities that have no likes.
    • containsStrings (default: []): Remove activities containing user-defined strings.
  • options: Additional settings.
    • targetLoadCount (default: 2): Set the minimum number of activities to display per "Load More" click.
    • caseSensitive (default: false): Set to true for case-sensitive string removal.
    • reverseConditions (default: false): Set to true to only keep posts that meet removal conditions.
    • linkedConditions (default: []): Groups of conditions to be checked together.
  • runOn: Determines where the script runs.
    • home (default: true): Set to true to run on the home feed (/home).
    • social (default: true): Set to true to run on social feeds (/*/social).
    • profile (default: false): Set to true to run on user profile feeds (/user/*).
    • guestHome (default: false): Set to true to run on the home feed for guests (/social).

Additional Information

containsStrings and linkedConditions support both regular ([]) and two-dimensional arrays ([[]]). In two-dimensional arrays, conditions/strings within the inner arrays are evaluated together.

  • ['A', 'B'] removes entries containing either 'A' or 'B'.
  • [['A', 'B']] removes entries containing both 'A' and 'B'.
  • [['A', 'B'], ['C', 'D']] removes entries containing either both 'A' and 'B' or both 'C' and 'D'.

Example Usages

  • options.linkedConditions: [['images', 'containsStrings'], ['uncommented', 'unliked']]:
    • Remove activities containing either both images and specific strings, or neither comments nor likes.
  • options.reverseConditions = true, remove.images = true:
    • Remove all activities except those containing images.

Demonstration

Filter for: videos | text | show name