Anilist: Activity-Feed Filter

Control the content displayed in your activity feeds

Автор
SeyTi01
Инсталации дневно
0
Инсталации общо
37
Рейтинг
0 0 0
Версия
1.8.4
Създаден
13.09.2023
Обновен
03.11.2024
Размер
10 КБ
Лиценз
MIT
Работи на

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

长期地址
遇到问题?请前往 GitHub 提 Issues,或加Q群1031348184

赞助商

Fishcpy

广告

Rainyun

注册一下就行

Rainyun

一年攒够 12 元